Closed
Description
Hello,
My code works correctly when like this,
$user->removeRole($user->roles->first());
But I am trying remove multiple roles like this;
$user->removeRole($user->roles);
and Laravel throwing this error message '
Return value of App\User::getStoredRole() must implement interface Spatie\Permission\Contracts\Role, instance of Illuminate\Database\Eloquent\Collection returned'
isnt there any collection support for remove role action ?