Php Laravel 5.4类应用程序\Http\Controllers\Auth\Request不存在

Php Laravel 5.4类应用程序\Http\Controllers\Auth\Request不存在,php,laravel-5.4,Php,Laravel 5.4,我需要创建用于电子邮件验证的自定义登录验证,我将发布一些代码片段,让您了解问题: 但是,我收到以下类App\Http\Controllers\Auth\Request不存在 堆栈溢出是说我需要更多的文本,因为它主要是代码,我希望这里的expert足以增加它 auth附带的login.blade-default,只是稍微调整了一下 <form class="form-horizontal" method="POST" action="{{ route('loginc') }}">

我需要创建用于电子邮件验证的自定义登录验证,我将发布一些代码片段,让您了解问题:

但是,我收到以下类App\Http\Controllers\Auth\Request不存在

堆栈溢出是说我需要更多的文本,因为它主要是代码,我希望这里的expert足以增加它

auth附带的login.blade-default,只是稍微调整了一下

<form class="form-horizontal" method="POST" action="{{ route('loginc') }}">
                    {{ csrf_field() }}

                    <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                        <label for="email" class="col-md-4 control-label">E-Mail Address</label>

                        <div class="col-md-6">
                            <input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required autofocus>

                            @if ($errors->has('email'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('email') }}</strong>
                                </span>
                            @endif
                        </div>
                    </div>

                    <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
                        <label for="password" class="col-md-4 control-label">Password</label>

                        <div class="col-md-6">
                            <input id="password" type="password" class="form-control" name="password" required>

                            @if ($errors->has('password'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('password') }}</strong>
                                </span>
                            @endif
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-4">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> Remember Me
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-8 col-md-offset-4">
                            <button type="submit" class="btn btn-primary">
                                Login
                            </button>

                            <a class="btn btn-link" href="{{ route('password.request') }}">
                                Forgot Your Password?
                            </a>
                        </div>
                    </div>
                </form>

尝试在控制器中添加此行

use Illuminate\Http\Request;

尝试在控制器中添加此行

use Illuminate\Http\Request;

如果未使用所需的命名空间,请尝试在控制器中使用以下名称空间:

use Illuminate\Http\Request;

由于脚本试图从当前名称空间App\Http\Controllers\Auth加载请求类,因此出现错误。如果未使用所需名称空间,请尝试在控制器中使用以下内容:

use Illuminate\Http\Request;

由于脚本试图从命名空间中的当前命名空间App\Http\Controllers\Auth加载请求类,因此出现错误。请使用以下代码或包含在命名空间中以查找错误请求:

use Illuminate\Http\Request;

在您的命名空间中,使用以下代码或包含在命名空间中,以便找到错误请求:

use Illuminate\Http\Request;

... 并删除此错误的导入使用App\Http\Controllers\Auth\Request。。。并删除此错误的导入使用App\Http\Controllers\Auth\request完整的错误消息将非常有用。目前,我们只能猜测错误发生在哪里,因此您发布的代码是否实际相关。完整的错误消息将非常有用。目前,我们只能猜测错误发生在哪里,因此您发布的代码是否真的相关。谢谢,它对我有用。谢谢,它对我有用。