title: Laravel Job - No handler registered for command
body: <p>I tried to get a simple job running exactly like the example in the Laravel Documentation - <a href="https://laravel.com/docs/5.2/queues#writing-job-classes" rel="nofollow">https://laravel.com/docs/5.2/queues#writing-job-classes</a> -  but I get this error: "No handler registered for command [App\Jobs\SendReminderEmail]".</p>
  
  <p>I followed the instructions to make the jobs table and even the failed_jobs table and have the exact example code.</p>
  
  <p>I assured that the handle() function is there so I don't know what else can be missing.</p>
  
  <p>Regards.</p>
  
  <p><strong>Update with code</strong>:</p>
  
  <p>First I used the class in the Laravel example but then I simplified it to this: </p>
  
  <pre><code>&lt;?php
  
  namespace App\Jobs;
  
  use App\Jobs\Job;
  use Illuminate\Queue\SerializesModels;
  use Illuminate\Queue\InteractsWithQueue;
  use Illuminate\Contracts\Queue\ShouldQueue;
  
  class SyncFromJson extends Job implements ShouldQueue
  {
  use InteractsWithQueue, SerializesModels;
  
  /**
   * Create a new job instance.
   *
   * @return void
   */
   public function __construct()
   {
       //
   }
  
  /**
   * Execute the job.
   *
   * @return void
   */
  public function handle()
  {
      //
      $var = "fooooo";
      \Log::info("job is running!!!", $var);
  }
  }
  </code></pre>
  
  <p>To call the job I created a simple method in a controller that dispatches the job:</p>
  
  <pre><code>$job = (new SyncFromJson())-&gt;delay(3);
  $this-&gt;dispatch($job);
  </code></pre>
  
  <p>Also tried this:
  <code>$this-&gt;dispatch(new SyncFromJson());</code></p>