PHPackages                             kristories/laravel-rsd - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. kristories/laravel-rsd

AbandonedArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

kristories/laravel-rsd
======================

Subdomain validator for Laravel

1.0.0(8y ago)08MITPHPPHP ^7.0

Since Apr 26Pushed 8y agoCompare

[ Source](https://github.com/Kristories/laravel-rsd)[ Packagist](https://packagist.org/packages/kristories/laravel-rsd)[ RSS](/packages/kristories-laravel-rsd/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (3)Used By (0)

Laravel Reserved Subdomains
===========================

[](#laravel-reserved-subdomains)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1d88a7fd5d42e236b4f7d90c3dbb5919cdee7f8200bc5670a9b1899b133bfe61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4b726973746f726965732f6c61726176656c2d7273642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Kristories/laravel-rsd)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/aaaabbbff6085906d6094e9a87a17106a8cdf9778c79231ab3a0ecae8cda152f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4b726973746f726965732f6c61726176656c2d7273642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kristories/laravel-rsd)

Subdomain validator for Laravel.

Requirements
------------

[](#requirements)

This package requires Laravel 5.5 or higher.

Installation
------------

[](#installation)

You can install this package via composer using this command :

```
composer require kristories/laravel-rsd

```

The package will automatically register itself.

Publish the configuration file :

```
php artisan vendor:publish --tag=config

```

Usage
-----

[](#usage)

```
// Route
Route::group(['domain' => '{account}.domain.tld'], function () {
    Route::middleware(['rsd'])->group(function () {
        Route::get('/', function () {
            return view('welcome');
        });
    });
});

// Kernel
protected $routeMiddleware = [
    'rsd' => \Kristories\Rsd\Rsd::class,
];
```

Or

```
// Route
Route::group(['domain' => '{account}.domain.tld'], function () {
    Route::get('/', function () {
        return view('welcome');
    });
});

// Kernel
rotected $middleware = [
    \Kristories\Rsd\Rsd::class,
];
```

### Driver

[](#driver)

#### Array

[](#array)

##### ENV

[](#env)

```
RSD_DRIVER=array

```

##### Config

[](#config)

```
'subdomains' => [
    'dev',
    'staging',
    'private',
    'reserved',
    'status',
],
```

#### Database

[](#database)

##### ENV

[](#env-1)

```
RSD_DRIVER=database

```

##### Config

[](#config-1)

```
'model' => App\YourModel::class
```

##### Model

[](#model)

```
use Kristories\Rsd\ReservableTrait;
use Illuminate\Database\Eloquent\Model;

class YourModel extends Model
{
    use ReservableTrait;

    protected $reserved_column = 'name';
}
```

##### Extra scope

[](#extra-scope)

```
use Kristories\Rsd\ReservableTrait;
use Illuminate\Database\Eloquent\Model;

class YourModel extends Model
{
    use ReservableTrait;

    protected $reserved_column = 'name';

    public function scopeReservedExtra($query)
    {
        return $query->where('active', true);
    }
}
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/kristories/laravel-rsd/blob/master/CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/kristories/laravel-rsd/blob/master/LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2939d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6aec55704f55f6828d892ca89d2bb8d830422a35f210a786ab6903a668caf3b5?d=identicon)[Kristories](/maintainers/Kristories)

---

Top Contributors

[![Kristories](https://avatars.githubusercontent.com/u/774338?v=4)](https://github.com/Kristories "Kristories (12 commits)")

---

Tags

laravellaravel-frameworksubdomainsubdomainsvalidator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kristories-laravel-rsd/health.svg)

```
[![Health](https://phpackages.com/badges/kristories-laravel-rsd/health.svg)](https://phpackages.com/packages/kristories-laravel-rsd)
```

###  Alternatives

[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[cviebrock/eloquent-sluggable

Easy creation of slugs for your Eloquent models in Laravel

4.0k13.6M253](/packages/cviebrock-eloquent-sluggable)[genealabs/laravel-model-caching

Automatic caching for Eloquent models.

2.4k4.8M26](/packages/genealabs-laravel-model-caching)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[cmgmyr/messenger

Simple user messaging tool for Laravel

2.6k2.4M6](/packages/cmgmyr-messenger)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
