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