ErrorException in EloquentUser.php line 204:
Undefined property: App\User::$roles
public function apply(Builder $builder, Model $model)
{
if (\Sentinel::inRole('coach')) {
$role = Role::where('slug', "LIKE", 'coach')->first();
$builder->whereIn('slug', $role->getAllowedNewRoles());
} elseif (\Sentinel::inRole('studio')) {
$role = Role::where('slug', "LIKE", 'studio')->first();
$builder->whereIn('slug', $role->getAllowedNewRoles());
}
}
public function remove(Builder $builder, Model $model)
{
}
$obj->user->getЧётоТам();