Skip to content

laravel-validation-rules/subdomain

Repository files navigation

Subdomain

Validates a user submitted subdomain in your application.

Supports Laravel: 5.5, 5.6, 5.7 & 5.8

Installation

composer require laravel-validation-rules/subdomain

Usage

use LVR\Subdomain\Subdomain;

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