Instead of doing dd($result)
you can put ->dd()
as a method directly at the end of your Eloquent sentence, or any Collection.
1// Instead of2$users = User::where('name', 'Taylor')->get();3dd($users);4// Do this5$users = User::where('name', 'Taylor')->get()->dd();