Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

armanyum's avatar

Laravel 10 zizaco/entrust

I have a project in Laravel 5 and it uses zizaco/entrust for roles and permissions, it relies heavily on user roles. I needed to update that project to migrate from Laravel 5 to Laravel 10, but Laravel 10 no longer supports zizaco/entrust. Can anyone suggest me what to do in a scenario like this, because the project already has real time data in its db and I don't want to mess up the data and its role management.

0 likes
1 reply
aleahy's avatar

If I were you, I would fork the zizaco/entrust package and get it working with Laravel 10, and have your app use that. It is unlikely to need a lot of changes. At least it has some tests!

Alternatively, you could migrate your app to use another, better supported package like Spatie's laravel-permission, but that would probably be a lot of work.

Migrating to a supported package (or building your own system) is probably something worth doing in the long term anyway, but if you're in a rush to upgrade, then forking is probably the easiest and quickest option.

2 likes

Please or to participate in this conversation.