{"repo":"spatie/laravel-translatable","free":true,"listed":false,"github":"https://github.com/spatie/laravel-translatable","clone":"git clone https://github.com/spatie/laravel-translatable.git","description":"Making Eloquent models translatable","language":"PHP","stars":2458,"topics":["laravel","php","i18n","translated-attributes","eloquent"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"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. The attribute accepts a variadic list of column names, so you can pass as many as you need. Alternatively, you can declare the translatable attributes via a public $translatable property: When both the property and the attribute are present, their values are merged and deduplicated. After the trait is applied on the model you can do these things: Also providing scoped queries for retrieving records based on locales Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Documentation All documentation is available on our documentation site. Testing Contributing Please see CONTRIBUTING for details. Security If you've found a bug regarding security please mail security@spatie.be instead of using the issue tracker. Postcardware You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. Our address is: Spatie, Kruikstraat 22, 201","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-translatable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}