vendredi 12 octobre 2018

Laravel eloquent results not giving options to view attributes when using dd

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.

enter image description here

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