From bddd6d0ed4018e6d4158fd9def570e160bf9b3ad Mon Sep 17 00:00:00 2001 From: Chimezie Enyinnaya Date: Tue, 10 Sep 2024 07:27:33 +0100 Subject: [PATCH] queue email --- app/Models/User.php | 6 ++ app/Notifications/VerifyEmail.php | 12 +++ docker-compose.yml | 124 ++++++++++++++++++++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 app/Notifications/VerifyEmail.php create mode 100644 docker-compose.yml diff --git a/app/Models/User.php b/app/Models/User.php index 152a9eb..68c118c 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -2,6 +2,7 @@ namespace App\Models; +use App\Notifications\VerifyEmail; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; @@ -44,4 +45,9 @@ class User extends Authenticatable implements MustVerifyEmail 'password' => 'hashed', ]; } + + public function sendEmailVerificationNotification() + { + $this->notify(new VerifyEmail); + } } diff --git a/app/Notifications/VerifyEmail.php b/app/Notifications/VerifyEmail.php new file mode 100644 index 0000000..f417aa7 --- /dev/null +++ b/app/Notifications/VerifyEmail.php @@ -0,0 +1,12 @@ +