From 52c84f8d22efe6d5322b6b562fe85f4ffa66e1fe Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 13 Sep 2023 20:48:13 +0200 Subject: [PATCH] fix: lower case email on waitlist --- app/Http/Livewire/Waitlist/Index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/Waitlist/Index.php b/app/Http/Livewire/Waitlist/Index.php index fb040c6d5..d2ce6fe19 100644 --- a/app/Http/Livewire/Waitlist/Index.php +++ b/app/Http/Livewire/Waitlist/Index.php @@ -6,6 +6,7 @@ use App\Models\User; use App\Models\Waitlist; use Livewire\Component; +use Str; class Index extends Component { @@ -46,7 +47,7 @@ public function submit() return; } $waitlist = Waitlist::create([ - 'email' => $this->email, + 'email' => Str::lower($this->email), 'type' => 'registration', ]);