PHP code example of wamesk / laravel-nova-currency
1. Go to this page and download the library: Download wamesk/laravel-nova-currency 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-currency example snippets
protected $policies = [
'Wame\LaravelNovaCurrency\Models\Currency' => 'src\Policies\CurrencyPolicy',
];
Select::make(__('laravel-nova-currency::customer.field.currency'), 'currency_code')
->help(__('laravel-nova-currency::customer.field.currency.help'))
->options(fn () => CurrencyController::getListForSelect())
->searchable()
-> ->filterable()
->showOnPreview()
->exceptOnForms(),
bash
php artisan migrate
bash
php artisan db:seed --class=CurrencySeeder