ifo/laravel-roles-permission-manager

The ifo/Laravel roles and manager.

v1.03 2024-05-30 11:42 UTC

This package is auto-updated.

Last update: 2024-05-30 11:48:38 UTC


README

Laravel Version : ^9

Previews

classification

permssion

roles

License

MIT license.

Usage

This is a package - it's a full Laravel project that you should use as a starter boilerplate, and then add your own custom functionality. Here in this package can create roles and manager using the classification and permission manager.

  • Clone the repository with git clone
  • Copy .env.example file to .env and edit database credentials there
  • Run composer install
  • Run php artisan migrate
  • To run db:seed please run below command to store default permissions and users data
  • Run php artisan db:seed --class="Packages\\RoleManager\\Database\\Seeders\\DatabaseSeeder"
  • Go to root project public folder then Please run below symbolic link creation for pointing to package public folder
  • ln -s ../vendor/ifo/laravel-roles-permission-manager/src/public role-manager
  • Please add below middleware in kernal.php file inside web middleware group for registering the Auth gate middleware to api.php file
  • \Packages\RoleManager\App\Http\Middleware\AuthGates::class
  • Run php artisan key:generate

With that user you can create more roles/permissions/users, and then use them in your code, by using functionality like Gate or @can, as in default Laravel.

Your will be get Login Credentials from seeder file
--- <root-project> / database / seeders / UsersTableSeeder.php
Run below url to navigate to roles manager
http://127.0.0.1:8000/ifo-roles

Notice

We are not responsible for any functionality or bugs in Monsteradmin & Others packages or their future versions, if you find bugs there - please contact vendors directly.

Credit

Author : Mahesh Babu Manikanti

Development : Mahesh Babu Manikanti



Thanks For Downloading