epartment / nova-unique-ajax-field
A Laravel Nova field.
Installs: 578
Dependents: 0
Suggesters: 0
Security: 0
Stars: 19
Watchers: 3
Forks: 4
Open Issues: 2
Language:Vue
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-12-17 02:28:24 UTC
README
Description
This field validates for uniqueness while typing through an AJAX request, instead of on-save in Nova.
Demo
Installation
Install through composer: composer require epartment/nova-unique-ajax-field
Usage
Add a new Unique
field to your Nova Resource:
use Epartment\NovaUniqueField\Unique; Unique::make('Email')
Options
Unique::make('Email', 'email') ->actOn(Unique::KEY_UP) ->notUniqueMessage('Not Unique!') ->keyUpDelay(500),
It is possible to validate on Key Up (with adjustable delay) or Blur.
License
The MIT License (MIT). Please see License File for more information.