brackets / translatable
Make your Eloquent models and other content translated into multiple languages
Installs: 209 486
Dependents: 3
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 5
Open Issues: 1
Type:project
Requires
- php: ^7.2.5|^7.3.0|^8.0
- ext-json: *
- laravel/framework: 6.*|7.*|8.*|9.*|10.*
- spatie/laravel-translatable: ^4.0|^5.0|^6.0
Requires (Dev)
- orchestra/testbench: ~4.0|~5.0|~6.0|~7.0|~8.0
- phpunit/phpunit: ^8.5|^9.0|^10.0
This package is auto-updated.
Last update: 2024-10-30 01:31:51 UTC
README
Translatable makes your content translatable in defined languages (locales). To sum up, the package:
- publishes a config, that defines locales (languages) used in your project,
- introduces a
HasTranslations
trait that makes your Eloquent model translatable (extendingspatie/laravel-translatable
), - introduces a
TranslatableFormRequest
class that you can use as a base class for your Request classes to extend from, which simplify the definition of the rules for translatable data.
You can find full documentation at https://docs.getcraftable.com/#/translatable