LARAVEL: Get an array of scheduled tasks for output in admin dashboard
<p>Using the Laravel task scheduler I have created a number of tasks in Kernel.php</p>

<p>e.g:</p>

<pre><code>$schedule-&gt;command('some:command')
    -&gt;daily();

$schedule-&gt;command('another:command')
    -&gt;daily();
</code></pre>

<p>I would like to display the list of scheduled commands and there frequency (as well as last/next run time, which I can log myself using the before/after functions).</p>

<p>However i'm stuck at the first hurdle. What i'm not sure how to do is get an array of the scheduled tasks that have been defined in Kernel.php</p>

<pre><code>// Example function needs to be created
$tasks = getAllScheduledTasks();

@foreach($tasks as $task)
    &lt;tr&gt;
        &lt;td&gt;{{ $task-&gt;name }}&lt;/td&gt;
        &lt;td&gt;{{ $task-&gt;description }}&lt;/td&gt;
    &lt;/tr&gt;
@endforeach
</code></pre>

<p>Simplified Question: How can I get an array of the scheduled tasks in Laravel?</p>