https://github.com/laravel-validation-rules/subdomain
Validate a subdomain for your saas application
https://github.com/laravel-validation-rules/subdomain
laravel php subdomain validation
Last synced: about 1 year ago
JSON representation
Validate a subdomain for your saas application
- Host: GitHub
- URL: https://github.com/laravel-validation-rules/subdomain
- Owner: laravel-validation-rules
- License: apache-2.0
- Created: 2018-03-10T13:40:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-16T12:39:35.000Z (about 2 years ago)
- Last Synced: 2025-05-05T12:19:23.994Z (about 1 year ago)
- Topics: laravel, php, subdomain, validation
- Language: PHP
- Homepage:
- Size: 157 KB
- Stars: 28
- Watchers: 2
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Subdomain
Validates a user submitted subdomain in your application.
Supports Laravel: 5.5, 5.6, 5.7 & 5.8
## Installation
```bash
composer require laravel-validation-rules/subdomain
```
## Usage
```php
use LVR\Subdomain\Subdomain;
$request->validate([
'domain' => ['required', new Subdomain],
]);
```