kukac7/external-url-validator

External Url Validator for Laravel Nova

1.0.3 2019-08-01 09:19 UTC

This package is auto-updated.

Last update: 2022-04-29 01:12:59 UTC


README

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: