PHP code example of wamesk / nova-email-autocomplete-field

1. Go to this page and download the library: Download wamesk/nova-email-autocomplete-field library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wamesk / nova-email-autocomplete-field example snippets


use Wame\NovaEmailAutocompleteField\Email;

Email::make('Email')

use Wame\NovaEmailAutocompleteField\Email;

Email::make('Email')
    ->domains([
        'gmail.com',
        'yahoo.com',
        ...
    ])

Email::make(__('user.field.email'), 'email')
    ->reationRules('unique:users,email')
    ->updateRules('unique:users,email,{{resourceId}}')

Email::make(__('user.field.email'), 'email')
    ->uniqueResource(false)

Email::make(__('customer.field.email'), 'email')
    ->uniqueResource('customers')
shell
php artisan vendor:publish --provider="Wame\NovaEmailAutocompleteField\FieldServiceProvider" --tag="config"