Easiest way to query based on a relationship
I have a Role Model that has names such as "admin".
Each User has a number of roles
public function roles()
How can I easily return all the Users who have Admin as a role?
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!