spatie/laravel-translatable
Add multilingual fields to Eloquent models using a simple HasTranslations trait. Store translations as JSON on the model (no extra tables). Set/get translations per locale, switch app locale, fetch all translations, and even translate nested JSON keys via -> notation.
|
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 |
| 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?