mardi 27 septembre 2016

Dispatch queue from another queue in laravel 5.1

enter code hereI'm trying to dispatch queue from another queue in laravel rightnow. So for example I have created a job like this :

class CandidateQueue extends Job implements SelfHandling
{
    protected $request;
    public function __construct($request)
    {        

        $this->request = $request;
    }

 public function handle()
 {
      ....
      $this->dispatch($queueEmail);

    }
}

The problem is when executing $this->dispatch(), laravel said "Call to undefined method ....::dispatch()". So How do I trigger this queue from current queue ?

Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire