kodeine / laravel-acl

Light-weight role-based permissions system for Laravel 6+ built in Auth system.
MIT License
786 stars 216 forks source link

Can't get package to work in Laravel 6 #242

Open LordZardeck opened 4 years ago

LordZardeck commented 4 years ago

Has anyone successfully got this package working in Laravel 6 on a clean Laravel project?

I've had to make a bunch of migration changes in order for the migrations to even run, then when I finally got them running, I started getting errors with HasRole trying to call the starts_with method, which was apparently changed in Laravel 6 to Str::startsWith (https://laravel.com/docs/6.x/helpers#method-starts-with)

If anyone has gotten this working with Laravel 6 can you describe how?

alec-joy commented 4 years ago

Use this fork for now, I'm still finding things and this package isn't being updated frequently. I'll open pull requests back to this package as I find things but they may take awhile to get merged back in https://packagist.org/packages/phoenix-group-of-virginia/laravel-acl

kodeine commented 4 years ago

@alec-joy if you have PR's ready please send those ill merge them asap, im traveling so fixing this at this time is difficult. Thank you for your submissions!

alec-joy commented 4 years ago

@kodeine I will open a PR tonight from my personal github account, ajoy39. I need to add some more tests and try to refactor some of the old compatibility code a bit, that's where most of the problems are coming from. Both applications I tested 2.0 on were apps that had been updated to 6.0 from 5.x versions so I missed some of the changes that don't carry over to a clean install.

kodeine commented 4 years ago

@alec-joy thank you very much for your support.