BRACKETS-by-TRIAD / translatable by brackets

Make your Eloquent models and other content translated into multiple languages
212,311
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-12-15 15:01:51
Package Statistics
Total Downloads: 212,311
Monthly Downloads: 2,732
Daily Downloads: 25
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