spatie/laravel-translatable
Adds a HasTranslations trait to Eloquent models to store translations as JSON in the same table (no extra tables). Define translatable attributes via PHP attribute or $translatable, then set/get translations per locale and auto-resolve by app locale.
|
Package
|
Constraint
|
|---|---|
| illuminate/database | ^11.0|^12.0|^13.0 |
| illuminate/support | ^11.0|^12.0|^13.0 |
| spatie/laravel-package-tools | ^1.93.0 |
|
Package
|
Constraint
|
|---|---|
| friendsofphp/php-cs-fixer | ^3.90 |
| larastan/larastan | ^3.0 |
| mockery/mockery | ^1.6.12 |
| orchestra/testbench | ^9.0|^10.0|^11.0 |
| pestphp/pest | ^4.0.0 |
How can I help you explore Laravel packages today?