2023 - Laravel 9 - best Auth with roles and permissions package?
Hello,
I am looking into creating a Laravel app with multiple roles and permissions. I read online that the best 2 packages are Laravel Breeze and Laravel-permission by Spatie.
I also found Santigarcor/laratrust.
I am looking into this as I read that Laravel is looking into taking out the @can option as it is considered deprecated since Laravel 7.x. Is this true?
The Spatie package is effectively a very good package to manage roles and permissions. It's based on the use of Laravel policies. You can either use the Spatie package or create your own policies.
Laravel breeze is a starter kit, it has nothing to do with roles and permissions.
On the other hand both Laratrust and laravel-permission are great packages, I personally would go with spatie, because they always support the latest version and update the code base, it's more active than Laratrust.