I've seen this question but the solution therein doesn't use the Laravel method.
I wanna do something like this:
$this->info('This is the result: ', $result);
I've seen this question but the solution therein doesn't use the Laravel method.
I wanna do something like this:
$this->info('This is the result: ', $result);
$this->infoAndLogfunction in your class that calls$this->info()and does something else. (Or extend theinfo()function.)$this->info('This is the result: ' . print_r($result, true));?