enter code here
I'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