PHPackages                             crabbly/authorize - 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. crabbly/authorize

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

crabbly/authorize
=================

Roles and permissions authorization package for Laravel.

v1.0.2(10y ago)2191MITPHP

Since Jun 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/crabbly/authorize)[ Packagist](https://packagist.org/packages/crabbly/authorize)[ RSS](/packages/crabbly-authorize/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Authorize
=========

[](#authorize)

Authorize is a package for Laravel that provides User Access Control using Roles and Permissions.

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

[](#installation)

### Step 1: Composer

[](#step-1-composer)

From the command line, run:

```
composer require crabbly/authorize

```

### Step 2: Service Provider

[](#step-2-service-provider)

For your Laravel app, open `config/app.php` and, within the `providers` array, append:

```
Crabbly\Authorize\AuthorizeServiceProvider::class

```

This will bootstrap the package into Laravel.

Step 3: Publish and Run Migrations
----------------------------------

[](#step-3-publish-and-run-migrations)

php artisan vendor:publish --provider="Crabbly\\Authorize\\AuthorizeServiceProvider" --tag="migrations"

php artisan migrate

Step 4: Add the `UserAuthorizeTrait` to your `User` model:
----------------------------------------------------------

[](#step-4-add-the-userauthorizetrait-to-your-user-model)

```
