In my old project laravel 5.4, use zizaco/entrust and it's doesn't support laravel 7. So I would like to use spatie/laravel-permission.
Could you please guide me how to do it.
In my old project laravel 5.4, use zizaco/entrust and it's doesn't support laravel 7. So I would like to use spatie/laravel-permission.
Could you please guide me how to do it.
Yes I got the solution to this issue. Please go through the steps I have used.
-Run command php artisan make:provider EntrustCustomServiceProvider -go to app/Providers/EntrustCustomServiceProvider.php Use Auth; and Write in the boot function
Link
Check this method: Now I found other github name greatsami-master support for laravel 7 (it's forked from zizaco entrust too).https://github.com/greatsami/entrust