PHPackages                             lazycode/laravel-simple-permissions - 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. lazycode/laravel-simple-permissions

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

lazycode/laravel-simple-permissions
===================================

A Laravel package for handling roles and permissions.

v1.0.0(1y ago)114MITPHPPHP &gt;=7.4

Since Oct 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/subhobiswas/laravel-simple-permissions)[ Packagist](https://packagist.org/packages/lazycode/laravel-simple-permissions)[ RSS](/packages/lazycode-laravel-simple-permissions/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Simple Permissions
==========================

[](#laravel-simple-permissions)

A simple Laravel package for handling roles and permissions. This package allows you to assign roles to users, manage permissions, and easily check for roles and permissions in your application.

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

[](#installation)

To install the package, run the following command:

```
composer require lazycode/laravel-simple-permissions
```

### Publish Configuration

[](#publish-configuration)

After installing the package, publish the configuration file using:

```
php artisan vendor:publish --provider="Lazycode\Permissions\PermissionsServiceProvider" --tag=config
```

### Run Migrations

[](#run-migrations)

Next, run the migrations to create the necessary tables in your database:

```
php artisan migrate
```

Usage
-----

[](#usage)

### Setting Up the User Model

[](#setting-up-the-user-model)

In your User model (usually located at app/Models/User.php), ensure you include the HasRolesAndPermissions trait:

```
