Laravel - Query Builder - Debugging
You may use the dd
and dump
methods while building a query to dump the current query bindings and SQL. The dd
method will display the debug information and then stop executing the request. The dump
method will display the debug information but allow the request to continue executing:
DB::table('users')->where('votes', '>', 100)->dd();
DB::table('users')->where('votes', '>', 100)->dump();