Validate a user submitted subdomain

2.3.0 2020-09-16 18:32 UTC

README

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],
]);