BRACKETS-by-TRIAD / translatable by brackets

Make your Eloquent models and other content translated into multiple languages
208,726
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-11-08 03:01:43
Package Statistics
Total Downloads: 208,726
Monthly Downloads: 2,996
Daily Downloads: 150
Total Stars: 7
Total Watchers: 2
Total Forks: 4
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