Skip to content

kukac7/external-url-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

External Url Validator for Laravel Nova

Latest Version on Packagist

Demo

external-url-validator demo

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require kukac7/external-url-validator

Usage

Add a new ExternalUrlValidator field to your Nova Resource:

use Kukac7\ExternalUrlValidator\ExternalUrlValidator;

class Link extends Resource
{
    // ...

    public function fields(Request $request)
    {
        return [
            // ...

            ExternalUrlValidator::make('URL', 'url'),

            // ...
        ];
    }
}

Options

API Url

Set custom validate API url:

ExternalUrlValidator::make('URL', 'url')->apiUrl('http://example.test/api/validate-url'),

Security

If you discover any security related issues, please using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Acknowledgments

Special thanks to: