I am querying from my db using a join statement. When I use a dd() to print out my results I get the correct number of results, but for some reason the attributes array is not visible array.
Here is my code
$usersResults = User::where('place', '=', $place)
->join("destinations", 'users.id', "=", "destinations.user_id")
->select("users.*", "destinations.created_at")
->groupBy("users.id")->get();
dd($usersResults);
via Chebli Mohamed

Aucun commentaire:
Enregistrer un commentaire