Open pratiksuthar8032 opened 5 years ago
MY QUEUE FILE public $tries = 3; public function __construct($key,$studentid) { $this->Studentid = $studentid; $this->key = $key; }
/** * Execute the job. * * @return void */ public function handle() { $key = [ 'key' => $this->key, ]; $StudentEmail = $this->Studentid; Mail::to($StudentEmail)->send(new LinkEmail($key)); }
MY CONTROLLER FILE
$job = (new SendEmailjob($randomKey,$StudentEmail)) ->delay(Carbon::now()->addSecond(20)); dispatch($job);
This forum is for feature requests / internals chatter, not for support. Please use the Laracasts forum or StackOverflow for troubleshooting.
MY QUEUE FILE public $tries = 3; public function __construct($key,$studentid) { $this->Studentid = $studentid; $this->key = $key; }
MY CONTROLLER FILE