dacoto/laravel-domain-validation

A domain validator rule for Laravel

Fund package maintenance!
dacoto97

4.0.0 2024-02-28 09:31 UTC

This package is auto-updated.

Last update: 2024-10-28 10:47:45 UTC


README

GitHub Workflow Status (branch) GitHub GitHub release (latest by date)

A domain validator rule for Laravel 10.x and higher.

Usage

use dacoto\DomainValidator\Validator\Domain;

public function rules()
{
    return [
        'domain' => ['required', 'string', new Domain],
    ];
}