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

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

wilsonalencar/laravel-permission
================================

A Simple permission check to laravel.

0.0.6(6y ago)0271MITPHPPHP &gt;=5.6.4

Since Oct 13Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (6)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 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~267 days

Total

5

Last Release

2430d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37d8446e641646f25f550fdf97c215a7f0b85f5b354554425625b587e535bcf0?d=identicon)[wilson junior](/maintainers/wilson%20junior)

---

Top Contributors

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

---

Tags

laravelpermissioneasy

### Embed Badge

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

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

###  Alternatives

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[casbin/laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

324339.9k4](/packages/casbin-laravel-authz)[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)
