I recommend to you use this package https://github.com/spatie/laravel-permission
Laravel 5.3 upgrade roles package doesn't work
I have a laravel 5.2 application that uses https://github.com/romanbican/roles for roles and permissions. After upgrading to laravel 5.3 I get "Trying to get property 'id' of non-object" whenever i access a route that has a role middle-ware. Now i'm trying to switch to this https://packagist.org/packages/ultraware/roles as it seems it has a working version with Laravel 5.3
What steps should i do in order to remove romanbican package and use ultraware? should i remove all related lines in composer.json and app.php? Also how should my User.php class look like. Currently it is like:
use Bican\Roles\Contracts\HasRoleAndPermission as HasRoleAndPermissionContract; use Bican\Roles\Traits\HasRoleAndPermission;
class User extends Model implements AuthenticatableContract, AuthorizableContract, CanResetPasswordContract, HasRoleAndPermissionContract {
Thanks
Please or to participate in this conversation.