title: Laravel Cron Job scheduled task not working
body: <p>I am trying to update a status automatically with a scheduled task. I am not sure how to debug the issue as I am new to cron jobs. I have created the cronjob and added it the kernel. However, it doesn't execute. </p>
  
  <p><strong>cronOffer.php</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>protected $signature = 'update:offer';
  protected $description = 'update expired offers status ';
  
  public function __construct()
  {
      parent::__construct();
  }
  
  public function handle()
  {
      $RSS = Rss::where('RSS_Status', '!=', 6)-&gt;first();
      $Projects = Project::where('RSS_ID', $RSS-&gt;RSS_ID)-&gt;get();
  
      foreach ($Projects as $Project) {
  
          $applications = Application::where(['A_ID' =&gt; $Project-&gt;A_ID, 'Status_ID' =&gt; 2])-&gt;get();
          foreach ($applications as $application) {
              $current_time = Carbon::now();
              $OfferDeadline = $Project-&gt;updated_at; //-&gt;addDays(2)
  
              if ($current_time &gt;= $OfferDeadline) {
                  $application-&gt;Status_ID = 6;
                  $application-&gt;save();
              }
              $next = $application-&gt;S_Rank + 1;
  
              if ($application-&gt;Status_ID === 6) {
                  $waiting = Application::where(['A_ID' =&gt; $Project-&gt;A_ID, 'Status_ID' =&gt; 3, 'S_Rank' =&gt; $next])-&gt;first();
                  $waiting-&gt;Status_ID = 2;
                  $waiting-&gt;save();
              }
          }
      }
  }
  </code></pre>
  
  <p><strong>Kernel</strong> </p>
  
  <pre class="lang-php prettyprint-override"><code>protected $commands = [
      // Register corn commands (scheduled)
      Commands\cronOffer::class
  ];
  
  protected function schedule(Schedule $schedule)
  {
      //-&gt;dailyAt('09:30');
      $schedule-&gt;command('update:offer')
          -&gt;everyMinute();
  }
  
  protected function commands()
  {
      require base_path('routes/console.php');
  }
  </code></pre>