Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
N

Unique Ajax Field

Installation Instructions

Installation

Install through composer: composer require epartment/nova-unique-ajax-field

Readme

Nova Unique Field

Latest Version on Packagist Total Downloads License

Description

This field validates for uniqueness while typing through an AJAX request, instead of on-save in Nova.

Demo

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.

Back to Top
Added 7 years ago
Last updated 7 Years Ago
Version 1.0.2
Composer
epartment/nova-unique-ajax-field
GitHub stars 19
Packagist downloads 580

Favorites

11 users favorited

Rating

2.00
(out of 5)
★★★★★
★★★★
★★★
★★
4 ratings

Contributors

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas