craftable / translatable
Make your Eloquent models and other content translated into multiple languages
Package info
github.com/et-nik/craftable-translatable
Type:project
pkg:composer/craftable/translatable
v1.0.4
2019-07-05 13:37 UTC
Requires
- php: >=7.0.0
- laravel/framework: 5.5.*|5.6.*|5.7.*|5.8.*
- spatie/laravel-translatable: ^2.0|^3.0
Requires (Dev)
- orchestra/testbench: ^3.5|~3.6
- phpunit/phpunit: ^6.3|~7.0
This package is auto-updated.
Last update: 2026-03-07 00:54:25 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
HasTranslationstrait that makes your Eloquent model translatable (extendingspatie/laravel-translatable), - introduces a
TranslatableFormRequestclass 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