Download the PHP package novius/laravel-nova-translatable without Composer
On this page you can find all versions of the php package novius/laravel-nova-translatable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download novius/laravel-nova-translatable
More information about novius/laravel-nova-translatable
Files in novius/laravel-nova-translatable
Package laravel-nova-translatable
Short Description A Laravel Nova package for translatable fields
License AGPL-3.0-or-later
Informations about the package laravel-nova-translatable
Laravel Nova Translatable
Introduction
This package allows you to manage Laravel Models which use Laravel Translatable in Laravel Nova.
Requirements
- Laravel Nova >= 4.0
- Laravel >= 10.0
- PHP >= 8.2
NOTE: These instructions are for Laravel >= 10.0 and PHP >= 8.2 If you are using prior version, please see the previous version's docs.
Installation
You can install the package via composer:
Assets
Next we need to publish the package's assets. We do this by running the following command:
Fields, Action, Filter, Card
- Add
Locale
field on your Nova Resource. - Add
Translations
field on your Nova Resource. Don't forget to add relationtranslations
in the eager loading of your resource. You can translate item from the list of flags displayed. - You can add the
LocaleFilter
filter on your Nova Resource. - You can add the
Locales
card on your Nova Resource, if you've added theLocaleFilter
.
In all cases, add an availableLocales
on your Resource.
Lang files
If you want to customize the lang files, you can publish them with:
Lint
Lint your code with Laravel Pint using:
Licence
This package is under GNU Affero General Public License v3 or (at your option) any later version.
All versions of laravel-nova-translatable with dependencies
illuminate/support Version ^10.0|^11.0
laravel/nova Version ^4.0|^5.0
novius/laravel-translatable Version ^1.0