protected function beforeValidate(): void
{
$user = User::where('email', $this->data['email'])->first();
if ($user) {
Notification::make()
->danger()
->title('User already exist')
->body('This email has already been used for a user on the platform')
->persistent()
->send();
$this->action->halt();
}
}
protected function beforeValidate(): void
{
$user = User::where('email', $this->data['email'])->first();
if ($user) {
Notification::make()
->danger()
->title('User already exist')
->body('This email has already been used for a user on the platform')
->persistent()
->send();
$this->action->halt();
}
}