Looking to hire Laravel developers? Try LaraJobs

subdomain maintained by laravel-validation-rules

Description
Validate a user submitted subdomain
Last update
2024/04/16 14:39 (dev-master)
License
Links
Downloads
40 059

Comments
comments powered by Disqus

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