wamesk/laravel-nova-currency

Laravel Nova Currency field.

Installs: 458

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/wamesk/laravel-nova-currency

5.0.1 2025-02-20 15:52 UTC

This package is auto-updated.

Last update: 2025-10-06 09:52:10 UTC


README

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 () => CurrencyController::getListForSelect())
    ->searchable()
    ->required()
    ->rules('required')
    ->onlyOnForms(),

BelongsTo::make(__('laravel-nova-currency::customer.field.currency'), 'currency', Currency::class)
    ->displayUsing(fn () => CurrencyController::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