What is the database type? Mysql is case insensitive out of the box, so maybe someone changed it by accident?
I assume the screenshot is from production?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey!
As I'm not that good in explanations just have a look at this

That's a list of registered users. As you can see a user is able to register with the same email but with changed uppercase letters. How can I avoid this?
define:
// User.php
public function setEmailAttribute($value)
{
$this->attributes['email'] = strtolower($value);
}
every time you assign the user email, it will be lowercased:
$user = new User();
$user->name = $input['name'];
$user->password = Hash::make($input['password']);
$user->email = $input['email']; // will be converted to [email protected] on the database
$user->save(); // when saved of course
if you use create() I think you should do the conversion manually:
User::create([
'name' => $input['name'],
'email' => strtolower($input['email']),
'password' => Hash::make($input['password'])
]);
There is an old topic about this issue ( https://github.com/laravel/framework/issues/9430 ) Some people manage the unique validation in a Request Validation (ensuring that always your laravel application would be dealing with a lowercase email: https://github.com/laravel/framework/issues/9430#issuecomment-274482274 )
Others recommends to use a middleware to alter that kind of data to lowercase if detected https://github.com/laravel/framework/issues/9430#issuecomment-354729914
Maybe you can try that options too and check what works best for you.
Please or to participate in this conversation.