laravel output to console code example
Example 1: laravel log to console
error_log('Some message here.');
Example 2: print value in laravel console
dump($var);
dd($id);
var_dump($var);
die($var);
print_r($var);
error_log('Some message here.');
dump($var);
dd($id);
var_dump($var);
die($var);
print_r($var);