PHPackages                             christhompsontldr/laravel-restricted - 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. christhompsontldr/laravel-restricted

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

christhompsontldr/laravel-restricted
====================================

Allow users to enter a restricted mode which provides limited functionality.

v0.0.2(5y ago)02.9kMITPHP

Since May 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ChrisThompsonTLDR/laravel-restricted)[ Packagist](https://packagist.org/packages/christhompsontldr/laravel-restricted)[ RSS](/packages/christhompsontldr-laravel-restricted/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel Restricted is a simple Laravel package that provides a system for authenticated users to place their access into a restricted mode.

This can be useful for an application that needs a "kiosk" mode.

Laravel Restricted assumes that your Laravel application has a Bootstrap 4 type layout located at `resources/views/layouts/app.blade.php`. This is the default layout that comes preinstalled with [laravel/ui](https://github.com/laravel/ui).

Middleware
==========

[](#middleware)

By default, the `Restricted` middleware is applied to the `web` middleware group. Once an authenticated user has entered restricted mode, any route that does not have the `can:unrestricted` middleware/gate becomes protected and cannot be accessed.

Gates
=====

[](#gates)

### can:restricted

[](#canrestricted)

This can be applied to any routes that you would like to be restricted. If your application uses the default `web` middleware group, you will likely never need this gate.

### can:unrestricted

[](#canunrestricted)

This can be applied to any routes that you would like to be unrestricted. An example would be the kiosk's customer survey form.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~174 days

Total

2

Last Release

2022d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdadda5dda1f5a9711517509d5e552a699cd17fdac70fcc0ce7d364697d9cf0f?d=identicon)[ChrisThompsonTLDR](/maintainers/ChrisThompsonTLDR)

---

Top Contributors

[![ChrisThompsonTLDR](https://avatars.githubusercontent.com/u/348801?v=4)](https://github.com/ChrisThompsonTLDR "ChrisThompsonTLDR (3 commits)")

---

Tags

laravelauthrestricted

### Embed Badge

![Health badge](/badges/christhompsontldr-laravel-restricted/health.svg)

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

###  Alternatives

[mad-web/laravel-social-auth

Easy social auth integration with a lot of available providers

516.7k](/packages/mad-web-laravel-social-auth)[orchestra/auth

Auth Component for Orchestra Platform

24108.5k3](/packages/orchestra-auth)[codebot/entrust

This package provides a flexible way to add Role-based Permissions to Laravel

1596.6k](/packages/codebot-entrust)[ingria/laravel-x509-auth

Laravel 5 Client Certificate auth middleware

375.6k](/packages/ingria-laravel-x509-auth)[setiawanhu/sanctum-auth

Laravel package for generating user authentication feature using Laravel Sanctum

132.8k](/packages/setiawanhu-sanctum-auth)

PHPackages © 2026

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