From b17c09f7a74878894d7974b87b0dc7ff84c08c30 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 8 Sep 2023 17:31:02 +0200 Subject: [PATCH] update testemail command --- app/Console/Commands/TestEmail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/TestEmail.php b/app/Console/Commands/TestEmail.php index e876b62a0..50312d553 100644 --- a/app/Console/Commands/TestEmail.php +++ b/app/Console/Commands/TestEmail.php @@ -31,7 +31,7 @@ class TestEmail extends Command * * @var string */ - protected $signature = 'email:test'; + protected $signature = 'email:test {to}'; /** * The console command description. @@ -176,7 +176,7 @@ class TestEmail extends Command 'internal@example.com', 'Test Email', ) - ->to('test@example.com') + ->to($this->argument('to') ?? 'test@example.com') ->subject($this->mail->subject) ->html((string)$this->mail->render()) );