Laravel Email, Queue & Jobs

Send Email Through Jobs and queue

Mosharrf Hossain
Apr 26 · 1 min read

Step: 1 — Create mail setup

php artisan make:mail SendPasswordResetLink

📝Edit: SendPasswordResetLink File

Step: 2— Configuration of Queue

QUEUE_CONNECTION=database
php artisan queue:table
php artisan migrate

Step: 3— Create Queue Job

php artisan make:job SendPasswordResetEmail

Step: 4— Trigger the job

dispatch(new SendPasswordResetEmail($user, $token))
php artisan queue:work

Mh Mohon

This is My blog

Mosharrf Hossain

Written by

Mh Mohon

Mh Mohon

This is My blog