The Shift Exchange answer will show you the details on the page, but if you want to register these variables without stopping the processing of the request, you should use the built-in Log class:
You can register at different levels " and in combination with PHP print_r() checks all kinds of variables and arrays using readability:
// log one variable at "info" logging level: Log::info("Logging one variable: " . $variable); // log an array - don't forget to pass 'true' to print_r(): Log::info("Logging an array: " . print_r($array, true));
Value . The above between lines is important and is used to combine lines into a single argument.
By default, they will be written to the file here:
/app/storage/log/laravel.log
msturdy
source share