spamacom / laravel-translatable
A Laravel package for multilingual models | upgraded By Mouhammad Alali
Requires
- php: ^8.0
- illuminate/contracts: ^8.0 || ^9.0 || ^10.0
- illuminate/database: ^8.0 || ^9.0 || ^10.0
- illuminate/support: ^8.0 || ^9.0 || ^10.0
Requires (Dev)
- laravel/legacy-factories: ^1.0.4
- mockery/mockery: ^1.3.3
- orchestra/testbench: ^6.0 || ^7.0 || ^8.0
- phpunit/phpunit: ^9.0
This package is not auto-updated.
Last update: 2024-12-31 18:39:22 UTC
README
If you want to store translations of your models into the database, this package is for you.
This is a Laravel package for translatable models. Its goal is to remove the complexity in retrieving and storing multilingual model instances. With this package you write less code, as the translations are being fetched/saved when you fetch/save your instance.
The full documentation can be found at GitBook.
Installation
composer require spamacom/laravel-translatable
Quick Example
Model()->whereTranslationFullText('name','any word',['mode'=>'boolean'])->orWhereTranslationFullText('name','any word',['mode'=>'boolean'])
Visit the totorial for more details how you can use fulltext search function Boolean Full-Text Searches.