whereRaw('email = ?' . ('sqlite' === config('database.default') ? ' COLLATE NOCASE' : ''), [strtolower($value)]) ->first(); if (! $user) { $fail('validation.custom.email.exists')->translate(); } } }