/Laravel-Role-Permissions

Larave Roles and Permission management From Spatie Package

Primary LanguagePHP

Spatie Laravel Roles Permissions Sample (Boilerplate)

This Project is only created for to learn Spatie Laravel-permission package & also inspired from Laravel Daily


Model

  • Posts
  • Persmission
  • Roles
  • Users

Screenshot : Roles Permissions screenshot

Screenshot : Roles Permissions screenshot

Usage

  • Clone the repository with git clone
  • Copy .env.example file to .env and edit database credentials there
  • Run composer install
  • Run php artisan key:generate
  • Run php artisan migrate --seed (it has some seeded data - see below)
  • That's it: launch the main URL and login with default credentials admin@admin.com - password

License

The MIT license.

Notice

All the credit goes to Spatie Laravel-permission package. For proper guide, i would like to suggest direct follow the offical documentations.