Level 73
Use validation
$request->validate(['email' => 'unique:users.email']);
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
In my table I have set email address as unique. When someone try to insert the duplicate email ID then I want to display the message "Email ID already exist".
Can anyone help me please?
Please or to participate in this conversation.