Skip to content

wamesk/laravel-nova-currency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Nova 5 Currency

Requirements

  • laravel/nova: ^5.0

Installation

composer require wamesk/laravel-nova-currency
php artisan migrate
php artisan db:seed --class=CurrencySeeder

Usage

Select::make(__('laravel-nova-currency::customer.field.currency'), 'currency_code')
    ->help(__('laravel-nova-currency::customer.field.currency.help'))
    ->options(fn () => CurrencyService::getListForSelect())
    ->searchable()
    ->required()
    ->rules('required')
    ->onlyOnForms(),

BelongsTo::make(__('laravel-nova-currency::customer.field.currency'), 'currency', Currency::class)
    ->displayUsing(fn () => CurrencyService::displayUsing($request, $this))
    ->sortable()
    ->filterable()
    ->showOnPreview()
    ->exceptOnForms(),

Updating the exchange rates

This package also includes a scheduling command to start updating the exchange rates from European Central Bank every weekday at 16:15.

Running The Scheduler

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages