whereRaw('email = \'' . strtolower($value) . '\'' . ('sqlite' === config('database.default') ? ' COLLATE NOCASE' : '')) ->first(); return ! $user ? false : true; } /** * Get the validation error message. * * @codeCoverageIgnore * * @return array|string */ public function message() { return trans('validation.custom.email.exists'); } }