Download the PHP package dasperg/laravel-role without Composer
On this page you can find all versions of the php package dasperg/laravel-role. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dasperg/laravel-role
More information about dasperg/laravel-role
Files in dasperg/laravel-role
Download dasperg/laravel-role
More information about dasperg/laravel-role
Files in dasperg/laravel-role
Vendor dasperg
Package laravel-role
Short Description Laravel 5.7 native User Authentication + Role Authorization
License MIT
Homepage https://github.com/dasperg/laravel-role
Package laravel-role
Short Description Laravel 5.7 native User Authentication + Role Authorization
License MIT
Homepage https://github.com/dasperg/laravel-role
Please rate this library. Is it a good library?
Informations about the package laravel-role
Laravel simple role handling & middleware
- Installation
- Usage
- Seeding (optional)
Installation:
This package can be used in Laravel 5.7 or higher.
You can install the package via composer:
Create the role tables by running the migrations:
Add RoleTrait to your User
model:
Register middleware in app/Http/Kernel.php
file:
Usage
Controller:
Route:
Seeding (optional)
You can publish example seeder:
Don't forget to dump autoloader:
Now you can seed data:
All versions of laravel-role with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
^5.7.0
The package dasperg/laravel-role contains the following files
Loading the files please wait ....