fix: lower case email on waitlist

This commit is contained in:
Andras Bacsai 2023-09-13 20:48:13 +02:00
parent b22fecb615
commit 52c84f8d22

View File

@ -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',
]);