How to Upgrade Laravel 5.4 to Laravel 7.12

476 views Asked by At

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.

1

There are 1 answers

0
HKimhab On

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