PHPackages                             fazzinipierluigi/just-a-gate - 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. fazzinipierluigi/just-a-gate

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

fazzinipierluigi/just-a-gate
============================

A package that introduces a simple but very flexible and powerful ACL

1.0.0(1mo ago)03MITPHPPHP ^8.1

Since Jun 4Pushed 1mo agoCompare

[ Source](https://github.com/fazzinipierluigi/just-a-gate)[ Packagist](https://packagist.org/packages/fazzinipierluigi/just-a-gate)[ Docs](https://github.com/fazzinipierluigi/just-a-gate)[ RSS](/packages/fazzinipierluigi-just-a-gate/feed)WikiDiscussions main Synced 1w ago

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

Just A Gate
===========

[](#just-a-gate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5dd974097ca13143b132521940f98261636e8a550bf283b782a18f5dad5fef0e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66617a7a696e69706965726c756967692f6a7573742d612d676174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fazzinipierluigi/just-a-gate)[![Total Downloads](https://camo.githubusercontent.com/512ca2f7d86411996f717155bc9482b4cd9ed4fe7b5bd68a65f969e8e140a594/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66617a7a696e69706965726c756967692f6a7573742d612d676174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fazzinipierluigi/just-a-gate)

A simple, flexible, and powerful ACL (Access Control List) system for Laravel 10/11/12.

Roles are assigned to users. Permissions are assigned to roles. A middleware auto-checks permissions based on the route's controller action. A fluent PHP API and a Facade cover every operation without writing SQL.

---

Table of Contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Database Schema](#database-schema)
- [Quick Start](#quick-start)
- [Artisan Commands](#artisan-commands)
- [Protecting Routes — Middleware](#protecting-routes--middleware)
- [Authorizable Trait](#authorizable-trait)
- [Role Model](#role-model)
- [Permission Model](#permission-model)
- [JustAGate Facade](#justAgate-facade)
- [Blade Directives](#blade-directives)
- [Livewire Integration](#livewire-integration)
- [Testing](#testing)
- [Security](#security)
- [License](#license)

---

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

[](#requirements)

DependencyVersionPHP`^8.1`Laravel`^10.0 | ^11.0 | ^12.0 | ^13.0``illuminate/support``^10.0 | ^11.0 | ^12.0 | ^13.0``laravel/prompts``^0.3`> **Note on PHP version** — Laravel 10/11/12 require PHP 8.1/8.2; Laravel 13 requires PHP 8.3. The package runtime is compatible with PHP 8.1+. Your actual minimum PHP version is determined by the Laravel version you install.

---

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

[](#installation)

### 1. Require the package

[](#1-require-the-package)

```
composer require fazzinipierluigi/just-a-gate
```

### 2. Add the `Authorizable` trait to your User model

[](#2-add-the-authorizable-trait-to-your-user-model)

```
