PHPackages                             panoscape/privileges - 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. panoscape/privileges

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

panoscape/privileges
====================

Permission control system for Laravel

0.2.4(9y ago)3172MITPHPPHP &gt;=5.6.4

Since Nov 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/seancheung/privileges)[ Packagist](https://packagist.org/packages/panoscape/privileges)[ Docs](https://github.com/seancheung/privileges)[ RSS](/packages/panoscape-privileges/feed)WikiDiscussions master Synced 3w ago

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

Privileges
==========

[](#privileges)

Privilege and Group control for Laravel

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

[](#installation)

You can install this package via composer using this command:

```
composer require panoscape/privileges
```

Register service provider:

> config/app.php

```
'providers' => [
    ...
    Panoscape\Privileges\PrivilegesServiceProvider::class,
];
```

If you need blade directives, also add this:

> config/app.php

```
'providers' => [
    ...
    Panoscape\Privileges\PrivilegesBladeServiceProvider::class,
];
```

A middleware can also be registered:

> app/Http/Kernel.php

```
protected $routeMiddleware = [
  ...
  'privileges' => \Panoscape\Privileges\Middleware\PrivilegesMiddleware::class,
];
```

Publish profile config:

```
php artisan vendor:publish --provider="Panoscape\Privileges\PrivilegesServiceProvider" --tag="profile"
```

Modify the published profile template to suit your application.

> config/privileges\_profile.php

```
