Laravel for Beginners – Learn to Build Full-Stack Web Apps

Loading video...

Debugging Functions

Getting Started With Laravel

Debugging Functions

dump()

Prints the variable information and gives you the location from which it is printed.

$person = [
    "name" => "Zura",
    "email" => "zura@example.com",
];
dump($person);

Untitled

dd()

Prints the exact same output as dump() , but stops the script execution.

$person = [
    "name" => "Zura",
    "email" => "zura@example.com",
];
dd($person);

Discussion

Sign in to join the discussion.

No comments yet. Be the first to start the discussion!