Where to check if email exists....

i'm a bit confused about VALIDATION
in my app i need to create a model (technician) associated to the User model (ok)
i have the technician email field sets as unique in the db
when i create a technician with a non unique email, i need to send a notification
now i get an error page with the sql statemnt of duplicated email

in the form i have
Forms\Components\TextInput::make('email')
                                    ->email()
                                    ->required()
                                    ->unique()
                                    ->maxLength(255),


is not enough?
Was this page helpful?