Download the PHP package dejwcake/craftable-translatable without Composer
On this page you can find all versions of the php package dejwcake/craftable-translatable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dejwcake/craftable-translatable
More information about dejwcake/craftable-translatable
Files in dejwcake/craftable-translatable
Package craftable-translatable
Short Description Make your Eloquent models and other content translated into multiple languages
License MIT
Informations about the package craftable-translatable
Translatable
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
WithTranslations
interface that marks your Eloquent model translatable, although it will work with trait also without this interface, - 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
Composer
To develop this package, you need to have composer installed. To run composer command use:
For composer normalization:
Run tests
To run tests use this docker environment.
To switch between postgresql and mariadb change in docker-compose.yml
DB_CONNECTION environmental variable:
Run code analysis tools
To be sure, that your code is clean, you can run code analysis tools. To do this, run:
For php compatibility:
For code style:
or to fix issues:
For static analysis:
For mess detector:
All versions of craftable-translatable with dependencies
ext-json Version *
laravel/framework Version ^12.0
spatie/laravel-translatable Version ^6.11.4