PHPackages                             diepxuan/laravel-disreg - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. diepxuan/laravel-disreg

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

diepxuan/laravel-disreg
=======================

Disable Laravel registration

0.0.7(2mo ago)08.3kMITPHP

Since Dec 12Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/diepxuan/laravel-disreg)[ Packagist](https://packagist.org/packages/diepxuan/laravel-disreg)[ RSS](/packages/diepxuan-laravel-disreg/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Laravel Disreg
==============

[](#laravel-disreg)

Package vô hiệu hóa đăng ký trong Laravel.

Mô tả
-----

[](#mô-tả)

Disable Laravel registration (lấy từ composer.json).

Chức năng chính
---------------

[](#chức-năng-chính)

- Cung cấp middleware `DisableRegistrationMiddleware` để chặn truy cập route `/register`.
- Đăng ký middleware với alias `disable.register`.
- Khi truy cập route `/register`, trả về HTTP 403 với thông báo "Registration is disabled."

Cài đặt / Sử dụng
-----------------

[](#cài-đặt--sử-dụng)

```
composer require diepxuan/laravel-disreg
```

Package tự động đăng ký ServiceProvider.

Áp dụng middleware trong `app/Http/Kernel.php` hoặc trong route:

```
// Trong route
Route::middleware('disable.register')->group(function () {
    // Các route cần chặn đăng ký
});

// Hoặc áp dụng global
protected $middlewareGroups = [
    'web' => [
        // ...
        \Diepxuan\DisableRegistration\Http\Middleware\DisableRegistrationMiddleware::class,
    ],
];
```

Cấu trúc thư mục
----------------

[](#cấu-trúc-thư-mục)

```
laravel-disreg/
├── src/
│   ├── Http/
│   │   └── Middleware/
│   │       └── DisableRegistrationMiddleware.php
│   └── Providers/
│       └── DisableRegistrationServiceProvider.php
└── composer.json

```

Liên kết đến các package liên quan
----------------------------------

[](#liên-kết-đến-các-package-liên-quan)

Không có dependency.

Ghi chú
-------

[](#ghi-chú)

Package nhỏ, hữu ích cho hệ thống không cho phép người dùng tự đăng ký.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance85

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

Every ~145 days

Total

4

Last Release

79d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90fcb59bfa8097c0e0dacd05f43901adb774dc4adb6172b2b743635f8f3d1d2e?d=identicon)[caothu159](/maintainers/caothu159)

---

Top Contributors

[![caothu159](https://avatars.githubusercontent.com/u/4988663?v=4)](https://github.com/caothu159 "caothu159 (9 commits)")

### Embed Badge

![Health badge](/badges/diepxuan-laravel-disreg/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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