{"repo":"spatie/nova-translatable","free":true,"listed":false,"github":"https://github.com/spatie/nova-translatable","clone":"git clone https://github.com/spatie/nova-translatable.git","description":"Making Nova fields translatable","language":"PHP","stars":223,"topics":["laravel","php","nova","translatable","translations"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Making Nova fields translatable This package contains a Translatable class you can use to make any Nova field type translatable. Imagine you have this fields method in a Post Nova resource: That Post Nova resource will be rendered like this. 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. Requirements This Nova field requires Nova 4 or 5 specifically and MySQL 5.7.8 or higher. Installation First you must install spatie/laravel-translatable into your Laravel app. In a nutshell, this package will store translations for your model in a json column in your table. On top of that, it provides many handy functions to store and retrieve translations. Be sure to read the entire readme of laravel-translatable before using this Nova package. Next, you can install this Nova package into a Laravel app that uses Nova via composer: Usage In order to use the package you must first let Translatable know which locales your app is using using the Translatable::defaultLocales() method. You can put this code in AppServiceProvider or a dedicated service provider of your own. Next, you must prepare your model as explained in the readme of laravel-translatable. In short: you must ad","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/nova-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."}