muetze42/external-url-validator

This package is abandoned and no longer maintained. No replacement package was suggested.

External Url Validator for Laravel Nova

1.0.0 2021-02-27 01:17 UTC

This package is auto-updated.

Last update: 2022-05-29 01:49:57 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: