-2

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.

apokryfos
  • 38,771
  • 9
  • 70
  • 114
HKimhab
  • 1
  • 1
  • 3
  • With that kind of question, you won't have a precise answer as there are many ways to proceed. I recommend installing a fresh Laravel 7 version. Migrate routes, models, migrations, views and controllers after. – Lucien Dubois Jul 18 '20 at 03:53

1 Answers1

0

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

HKimhab
  • 1
  • 1
  • 3