samedi 19 août 2017

how to call job without wait for response in laravel (sync mode)

.env config file

QUEUE_DRIVER=sync

Route :

Route::get('user/sendmail/{email}','SendMailController@SendMail');

my function in Controller

public function SendMail($userMail){
    dispatch(new SendMailJob($userMail));
    return view('pages.success');
}

this function run job and work great but when i call job class it wait for response from job class i dont want wait for response. i want force return success and then run job class



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2v0Uphq
via IFTTT

Aucun commentaire:

Enregistrer un commentaire