title: why my cron job is not working in laravel?
body: <p>in db i have column <code>visit_clear</code> i want it 0 after one day so i used this code
  in kernal.php</p>
  <pre><code>   &lt;?php
      
      namespace App\Console;
      
      use Illuminate\Console\Scheduling\Schedule;
      use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
      
      class Kernel extends ConsoleKernel
      {
          protected $commands = [
          ];
          protected function schedule(Schedule $schedule)
          {
              $schedule-&gt;command('cron:update-user-not-new')-&gt;daily();
          }
      
          protected function commands()
          {
              $this-&gt;load(__DIR__.'/Commands');
      
              require base_path('routes/console.php');
          }
      }
  </code></pre>
  <p>and in command/UpdateUserNotNew.php</p>
  <pre><code>&lt;?php
  
  namespace App\Console\Commands;
  
  use Illuminate\Console\Command;
  
  use Illuminate\Support\Facades\DB;
  
  class UpdateUserNotNew extends Command
  {
   
      protected $signature = 'cron:update-user-not-new';
  
      protected $description = 'Command description';
  
  
  
      public function __construct()
      {
          parent::__construct();
      }
  
      public function handle()
      {
          $dayAgo = 1; // Days ago
          $dayToCheck = \Carbon\Carbon::now()-&gt;subDays($dayAgo)-&gt;format('Y-m-d');
          Customer::whereDate('visit_date', '&lt;=', $dayToCheck)
          -&gt;update([
              'visit_clear' =&gt; 0
          ]);
      }
  }
  </code></pre>
  <p>i am sheduling commnd like this as u can see <code>cron:update-user-not-new</code> should i use <code>crone:UpdateUserNotNew</code>?</p>