dimanche 15 avril 2018

send emails asynchronously with Laravel 5.5

How could email be sent asynchronously or in a faster way?

I made an application with the basic method

PHP artisan make: mail demo

then the view

public function build()
    {
        return $this->view('emails.demo');
    }

Sending the mail

public function index()
    {
        $email = Auth::user()->email;
        Mail::to($email)->send(new DemoMail());
        return view('home');
    }

How could I send emails faster?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire