Laravel

Laravel Debugging with dd and dump

January 16, 2026 1 min read 21 views

Debug effectively:

Basic Debugging

dd($variable); // Dump and die
dump($variable); // Dump and continue

Multiple Variables

dd($user, $posts, $comments);

Query Debugging

User::where('active', true)->dd();
User::where('active', true)->dump();

Log Queries

DB::enableQueryLog();
// Run queries
dd(DB::getQueryLog());

Ray Integration

ray($variable);
ray($user)->green();
ray()->measure();
Share this post:

Related Posts

Comments (0)

Please log in to leave a comment. Log in

No comments yet. Be the first to comment!