title: How to write output from Task Scheduling in Laravel?
body: <p>I have read the documentation, but I don't understand how to write the output if the task fails? I deliberately made a mistake in my task and copied it to the controller so that you can see the execution result.</p>
  <p>The result is an error that is displayed. But when the task is executed through Task Scheduling, I get empty output to my email.</p>
  <p>How to write the error output so that it would be present in the letter?</p>
  <p>My kernel.php:</p>
  <pre><code>$schedule-&gt;call(new Load())-&gt;everyTenMinutes()-&gt;emailOutputOnFailure('myemail');
  </code></pre>