Configure and test Laravel Task Scheduling
<h1>Environment</h1>
<ul>
<li><p>Laravel Version : <strong>5.1.45 (LTS)</strong></p>
</li>
<li><p>PHP Version : <strong>5.6.1</strong></p>
</li>
</ul>
<hr />
<h1>Description</h1>
<p>I'm trying to run a command every 1 minute using Laravel <a href="https://laravel.com/docs/5.3/scheduling#defining-schedules" rel="noreferrer">Task Scheduling</a>.</p>
<hr />
<h1>Attempt</h1>
<p>I've added this line to my cron tab file</p>
<p><code>*   *   *   *   *   php artisan schedule:run &gt;&gt; /dev/null 2&gt;&amp;1</code></p>
<p>Here is my <strong>/app/Console/Kernel.php</strong></p>
<pre><code>&lt;?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        \App\Console\Commands\Inspire::class,
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        $schedule-&gt;command('inspire')-&gt;hourly();
        $schedule-&gt;command('echo &quot;Happy New Year!&quot; ')-&gt;everyMinute(); //&lt;---- ADD HERE        }
}
</code></pre>
<p>I've added this line <code>$schedule-&gt;command('echo &quot;Happy New Year!&quot; ')-&gt;everyMinute();</code></p>
<hr />
<h1>Question</h1>
<p>How do I test this ?</p>
<p>How do I trigger my echo to display ?</p>
<p>How do I know if what I did is not wrong ?</p>