PHP code example of wamesk / laravel-nova-language
1. Go to this page and download the library: Download wamesk/laravel-nova-language library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wamesk / laravel-nova-language example snippets
protected $policies = [
'App\Models\Language' => 'Wame\LaravelNovaLanguage\Policies\LanguagePolicy',
];
Select::make(__('laravel-nova-language::customer.field.language'), 'language_code')
->help(__('laravel-nova-language::customer.field.language.help'))
->options(fn () => LanguageController::getListForSelect())
->searchable()
-> ->filterable()
->showOnPreview()
->exceptOnForms()
->hideFromIndex(),
bash
php artisan migrate
bash
php artisan db:seed --class=LanguageSeeder