spatie/laravel-translatable

Making Eloquent models translatable

PHPi18nphplaraveleloquenttranslated-attributes
This is stars and forks stats for /spatie/laravel-translatable repository. As of 05 May, 2024 this repository has 2067 stars and 261 forks.

A trait to make Eloquent models translatable This package contains a trait HasTranslations to make Eloquent models translatable. Translations are stored as json. There is no extra table needed to hold them. use Illuminate\Database\Eloquent\Model; use Spatie\Translatable\HasTranslations; class NewsItem extends Model { use HasTranslations; // ... } After the trait is applied on the model you can do these things: $newsItem = new NewsItem; $newsItem ->setTranslation('name', 'en', 'Name...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
popov-a-e/roompBladeVuePHP55000
Abhinav-26/DevOps-ProjectsCSSHTMLJavaScript430+44490
instrumentisto/roundcube-docker-imageDockerfileShellPHP18060
italia/design-drupal-themeTwigPHPSCSS7020
espocrm/espocrmPHPJavaScriptLess1.3k04780
TcNobo/TcNo-Random-ScriptsJavaScriptAutoHotkeyPython330110
docpad-archive/docpad-plugin-phpCoffeeScriptHTMLPHP2000
mindoc-org/mindocGoSmartyLess6.7k+131.8k-1
tide-emergency/yingjiPowerShellPHPPython1k02630
silverstripe/silverstripe-login-formsSCSSSchemePHP170110