PHPackages                             leandreaci/laravel-permission - 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. leandreaci/laravel-permission

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

leandreaci/laravel-permission
=============================

A Simple permission check to laravel.

0.0.3(9y ago)0373MITPHPPHP &gt;=5.6.4

Since Oct 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/leandreaci/laravel-permission)[ Packagist](https://packagist.org/packages/leandreaci/laravel-permission)[ Docs](https://github.com/leandreaci/laravel-permission)[ RSS](/packages/leandreaci-laravel-permission/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (4)Used By (0)

Laravel Permission
==================

[](#laravel-permission)

[![Laravel 5.3](https://camo.githubusercontent.com/8bfaefdf695ac3ff6cde30f94f554ea371c76f3156c48be6720a6fc85518cf0a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e332d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](http://laravel.com)

At the moment the package is not unit tested, but is planned to be covered later down the road.

Quick Installation
------------------

[](#quick-installation)

Begin by installing the package through Composer. The best way to do this is through your terminal via Composer itself:

```
composer require leandreaci\laravel-permission:dev-master

```

Or add to you composer.json and run composer install.

```
"require": {
   "Foo/Bar" : "*",
   "leandreaci/laravel-permission": "dev-master"
},

```

Once this operation is complete, simply add the service provider to your project's `config/app.php` file and run the provided migrations against your database.

### Service Provider

[](#service-provider)

```
Leandreaci\LaravelPermission\LaravelPermissionServiceProvider::class
```

### in the providers array and

[](#in-the-providers-array-and)

```
'Permission' => Leandreaci\LaravelPermission\Facade\LaravelPermission::class,
```

### Migrations

[](#migrations)

You'll need to run the provided migrations against your database. Publish the migration files using the `vendor:publish` Artisan command and run `migrate`:

```
php artisan vendor:publish
php artisan migrate

```

### Using

[](#using)

1 - Add permission slug to permissions table. 2 - Add user and permission equivalent to permission\_user table. 3 - Add Authorizable Trait to your User Model( Example above: Laravel 5.3).

```
namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Leandreaci\LaravelPermission\Traits\Authorizable;

class User extends Authenticatable
{
    use Notifiable;
    use Authorizable;
```

4 - Check any method of your controller

```
    use Leandreaci\LaravelPermission\Facade\Permission;

    class FooController
    {
        public function index()
        {
            if(! Permission::can('view.foo'))
            {
                //do what you want ;)
            }
        }
    }
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~3 days

Total

3

Last Release

3539d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/45f4a07313cad5f63051982ce3860af6f7fe2ac19c1c001a0f979d5d1f9876ce?d=identicon)[leandreaci](/maintainers/leandreaci)

---

Top Contributors

[![leandreaci](https://avatars.githubusercontent.com/u/5915470?v=4)](https://github.com/leandreaci "leandreaci (8 commits)")

---

Tags

laravelpermissioneasy

### Embed Badge

![Health badge](/badges/leandreaci-laravel-permission/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M163](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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