项目作者: vaened

项目描述 :
Example of implementation of roles and permissions in laravel using the laravel-authorization package
高级语言: PHP
项目地址: git://github.com/vaened/laravel-authorization-example.git
创建时间: 2018-03-25T16:29:35Z
项目社区:https://github.com/vaened/laravel-authorization-example

开源协议:

下载


Implementation of roles and permissions in laravel 7

Example of implementation of roles and permissions in laravel using the laravel-authorization package

Installation

1. Clone the repository

  1. git clone https://github.com/eneav/laravel-authorization-example.git

2. Install dependencies

  1. cd laravel-authorization-example
  2. composer install

If the .env file is not generated, it must be generated

  1. cp .env.example .env
  2. php artisan key:generate

3. Create a database

  1. mysql> create database authorization_example;

4. Configure database credentials

  1. DB_CONNECTION=mysql
  2. DB_HOST=127.0.0.1
  3. DB_PORT=3306
  4. DB_DATABASE=authorization_example
  5. DB_USERNAME=root
  6. DB_PASSWORD=

5. execute the migrations and seeders

  1. php artisan migrate --seed

6. Turn on the server

  1. php artisan serve

Users

Username Password Permissions Roles
hello@enea.io nano * Admin
editor@enea.io nano mofidy-articles
creator@enea.io nano create-articles
destroyer@enea.io nano destroy-articles