Besides dump functions PHP provide, Laravel brings new functions which help developers debug variabes. They are dd() and dump().
Table of Contents
dd()
dd is short hand of Dump and Die. The function dumps variable’s content to web browser. Unlike other functions, dd() stops execution of scripts below it.
dd('this is a string'); dd(Auth::user());
Output of first line:

Out put of 2nd line:

dump()
dump() is similar to dd() but allows below script to be executed.
$tools = [ 'Hammer', 'Screwdrivers', 'Wrench', 'Tape' ]; dump($tools); echo 'This is another line';

As you see, the string after dump can be printed out to screen.
var_dump()
This PHP function  shows structured information about variables, including their data types and values.
$user = Auth::user(); var_dump($user);

print_r()
The method prints human-readable information about a variable.
$car_brands = ['Fiat', 'Nissan', 'Toyota', 'Tesla', 'Chevrolet', 'Huyndai']; print_r($car_brands);

Array ( [0] => Fiat [1] => Nissan [2] => Toyota [3] => Tesla [4] => Chevrolet [5] => Huyndai )