Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

External Url Validator for Laravel Nova

License

Notifications You must be signed in to change notification settings

Muetze42/external-url-validator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 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:

About

External Url Validator for Laravel Nova

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Vue 48.7%
  • PHP 44.1%
  • JavaScript 6.9%
  • SCSS 0.3%