musaddiq-ciklum / laravel-learning

0 stars 1 forks source link

Add Roles & Permissions (Authorization) #22

Closed musaddiq-ciklum closed 3 years ago

musaddiq-ciklum commented 3 years ago

Use Laravel Gate and Policies or any other third party package

musaddiq-ciklum commented 3 years ago

Implemented using third party package Spatie. After running php artisan db:seed --class=PermissionSeeder following users with respective roles will be added.

For now authorization is only applied on /admin/posts. All of the users having same password "A1@google"