nembie/nova-iban-field

A Laravel Nova field.

1.0.0 2022-06-13 20:00 UTC

This package is auto-updated.

Last update: 2024-10-16 09:43:25 UTC


README

🏦 IBAN Field for Laravel Nova

A simple field for Laravel Nova that validates IBANs.

Released under the MIT license. PRs welcome! Packagist Version

Test case

⚙️ Installation

composer require nembie/nova-iban-field

🛠️ Usage

use Nembie\NovaIbanField\NovaIbanField;

...

public function fields(Request $request)
{
    return [
    
        NovaIbanField::make(__('Custom IBAN Label'), 'iban_column')->showDetails()
          
    ];
}

🧰 Methods

  • showDetails() - shows the information given by IBAN on the resource detail page
  • hideActionsOnIndex() - hide the actions on the index (copy and show/hide)
  • alwaysHideOnIndex() - "crypt" the IBAN in the index page

🌍 Supported countries

Full list of supported countries

🔺 Laravel Nova 4 Support

Read this comment.

🗒️ Note

  • This field only checks the formatting of the string, there is no check that the iban is actually valid and working.
  • German translation was done via google translate, it's probably wrong.