title: How to run a Laravel Job at specify Queue
body: <p>I have a Job to perform send SMS to user. I want to run this job on the specify queue-name. For example, this job added to &quot;<strong>SMS</strong>&quot; queue. So I found a way to do this but it's exists some errors.</p>
  <p><strong>Create job instance and use onQueue() function to do this</strong>:</p>
  <pre><code>    $resetPasswordJob = new SendGeneratedPasswordResetCode(app()-&gt;make(ICodeNotifier::class), [
          'number' =&gt; $user-&gt;getMobileNumber(),
          'operationCode' =&gt; $operationCode
      ]);
  
      $resetPasswordJob-&gt;onQueue('SMS');
  
      $this-&gt;dispatch($resetPasswordJob);
  </code></pre>
  <p>My Job class like this:</p>
  <pre><code>class SendGeneratedPasswordResetCode implements ShouldQueue
  {
     use InteractsWithQueue, Queueable;
  
  /**
   * The code notifier implementation.
   *
   * @var ICodeNotifier
   */
  protected $codeNotifier;
  
  /**
   * Create the event listener.
   *
   * @param ICodeNotifier $codeNotifier
   * @return self
   */
  public function __construct(ICodeNotifier $codeNotifier)
  {
      $this-&gt;codeNotifier = $codeNotifier;
  }
  
  /**
   * Handle the event.
   *
   * @return void
   */
  public function handle()
  {
      echo &quot;bla blaa bla&quot;;
      #$this-&gt;codeNotifier-&gt;notify($event-&gt;contact-&gt;getMobileNumber(), $event-&gt;code);
  }
  
  public function failed()
  {
      var_dump(&quot;failll&quot;);
  }
  }
  </code></pre>
  <p>So I type this command to console:</p>
  <pre><code>php artisan queue:listen --queue=SMS --tries=1
  </code></pre>
  <p>But this error message I get when executes this job:</p>
  <blockquote>
  <p>[InvalidArgumentException]</p>
  <p>No handler registered for command [App\Services\Auth\User\Password\SendGeneratedPasswordResetCode]</p>
  </blockquote>
  <p><strong>Note</strong>: Other way is add event to EventServiceProvider's <strong>listen</strong> property and fire the event. But it's does not work with specify queue-name.</p>