BRACKETS-by-TRIAD / translatable by brackets

Make your Eloquent models and other content translated into multiple languages
221,467
7
1
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: 2025-03-30 15:01:39
Package Statistics
Total Downloads: 221,467
Monthly Downloads: 2,421
Daily Downloads: 21
Total Stars: 7
Total Watchers: 1
Total Forks: 6
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