Answer the question
In order to leave comments, you need to log in
How to check for duplicate in Symfony 4?
There is a method in laravel to avoid recording duplicates:
User::firstOrCreate(array(
'name' => $input['name'],
'email' => $input['email'],
'password' => $input['password'])
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question