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...
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...
repo | techs | stars | weekly | forks | weekly |
---|---|---|---|---|---|
popov-a-e/roomp | BladeVuePHP | 55 | 0 | 0 | 0 |
Abhinav-26/DevOps-Projects | CSSHTMLJavaScript | 430 | +4 | 449 | 0 |
instrumentisto/roundcube-docker-image | DockerfileShellPHP | 18 | 0 | 6 | 0 |
italia/design-drupal-theme | TwigPHPSCSS | 7 | 0 | 2 | 0 |
espocrm/espocrm | PHPJavaScriptLess | 1.3k | 0 | 478 | 0 |
TcNobo/TcNo-Random-Scripts | JavaScriptAutoHotkeyPython | 33 | 0 | 11 | 0 |
docpad-archive/docpad-plugin-php | CoffeeScriptHTMLPHP | 2 | 0 | 0 | 0 |
mindoc-org/mindoc | GoSmartyLess | 6.7k | +13 | 1.8k | -1 |
tide-emergency/yingji | PowerShellPHPPython | 1k | 0 | 263 | 0 |
silverstripe/silverstripe-login-forms | SCSSSchemePHP | 17 | 0 | 11 | 0 |