nembie/nova-iban-field

A Laravel Nova field.

Downloads

70

Stars

1

Version

1.0.0

🏦 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.
Nembie

Author

Nembie