Subdomain

Validates a user submitted subdomain in your application.

Installation

composer require laravel-validation-rules/subdomain

Usage

use LVR\Subdomain\Subdomain;

$request->validate([
    'domain' => ['required', new Subdomain],
]);