In Laravel, I can use the log()
command to add comments to the log file (which helps me debug), something like this:
$var = 'this is a variable';
//some other code goes here
log::('Is $var a null? Here is the value '.$var);
I can then check in the log file.
How do I do this in OpenCart?