10 months ago

Check if submitted email is unique

Posted 10 months ago by hunterhawley

Hey y'all!

I've got my user table set up to make all emails be unique, but if a user tries to create a guest account for someone that is already in the system, I'd like it to not create a new user in the Controller, but to just add a record to a separate table.

How in the controller can I say "if $request->input('email') is not unique"?

Thanks in advance!

Please sign in or create an account to participate in this conversation.