I have that must run the DB query and not eloquent as it is a complicated query.
The problem is that in my query I also need to pull the user spattie role
The user table
-id
The "model_has_role" table
-role_id
-model_type
-model_id
roles table:
-id
-name <----I need to get to this one from the DB query when querying the table user.
-guard_name