BRACKETS-by-TRIAD / translatable by brackets

Make your Eloquent models and other content translated into multiple languages
186,506
7
2
Package Data
Maintainer Username: brackets
Maintainer Contact: pavol.perdik@brackets.sk (Pavol Perdík)
Package Create Date: 2017-09-06
Package Last Update: 2024-03-02
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-18 15:05:17
Package Statistics
Total Downloads: 186,506
Monthly Downloads: 3,032
Daily Downloads: 165
Total Stars: 7
Total Watchers: 2
Total Forks: 5
Total Open Issues: 1

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 (extending spatie/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