TIP 04 / 08

More Convenient Dd.

Instead of doing dd($result) you can put ->dd() as a method directly at the end of your Eloquent sentence, or any Collection.

code
// Previous approach:
$users = User::where('name', 'Taylor')->get();
dd($users);
// Recommended approach:
$users = User::where('name', 'Taylor')->get()->dd();