From d31683df61734cef9fee3a977de184efcab9b480 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 3 Nov 2023 14:39:11 +0100 Subject: [PATCH] update --- .tinkerwell/snippets/SendEmail.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.tinkerwell/snippets/SendEmail.php b/.tinkerwell/snippets/SendEmail.php index 2d08a8744..3b752bc04 100644 --- a/.tinkerwell/snippets/SendEmail.php +++ b/.tinkerwell/snippets/SendEmail.php @@ -4,11 +4,12 @@ * @description Send email to all users */ -use Illuminate\Notifications\Messages\MailMessage; +use App\Models\User; +use Illuminate\Support\Facades\Mail; set_transanctional_email_settings(); -$users = User::all(); +$users = User::whereEmail('andras.bacsai@gmail.com'); foreach ($users as $user) { Mail::send([], [], function ($message) use ($user) { $message