Practice Test Geeks home

LARAVEL Case Studies & Practical Application 4

A Laravel app has a users table and a roles table with a many-to-many relationship.
A query for all admins is returning duplicate users.

What is the Eloquent fix?

Select your answer