简体   繁体   中英

Laravel function helper dd() don't working as expected

I'm developing a new project in the last version of Laravel (8.12) and I've figured out that the function helper dd() don't work properly. Supposedly this function halts the execution of the script as is mentioned in the official doc , but in my case, the scripts continues until the end of it.

Example:

public function store(AnimalNewRequest $request)
{
    dd('Test 1');
    dd('Test 2');
}

Output:

"Test 1"
"Test 2"

Expected Output:

"Test 1"

Finally, it should be an error of vagrant and laravel homestead. Last update fixed the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM