Closed marksie1988 closed 4 years ago
If you have a teams relationship defined on your user model, you could do something like this
Auth::user()->teams->isNotEmpty()
I'll close this since its an old issue. Feel free to open another if you still need help.
Is there a way that we can check if a user is a member of any team?
i have a dropdown menu that users can switch teams from, the problem i have is that if the user is not a member of a team it just displays a laravel error.
I created the following but it still errors or doesnt show the correct information: