Twitter bootstrap 推特引导登录表单总是给出Laravel 5.2脚手架验证的验证错误

Twitter bootstrap 推特引导登录表单总是给出Laravel 5.2脚手架验证的验证错误,twitter-bootstrap,laravel,authentication,Twitter Bootstrap,Laravel,Authentication,我正在使用简单的make:auth脚手架登录到我的应用程序。在我对它应用一些引导程序样式之前,它工作得很好。现在每当我试图提交表单时,它总是给出一个错误,“用户名字段是必需的”,“密码字段是必需的” 以下是login.blade.php: <div class="panel-body"> <form class="no-margin" role="form" method="POST" action="{{ url('/login') }}">

我正在使用简单的make:auth脚手架登录到我的应用程序。在我对它应用一些引导程序样式之前,它工作得很好。现在每当我试图提交表单时,它总是给出一个错误,“用户名字段是必需的”“密码字段是必需的”

以下是login.blade.php:

<div class="panel-body">
            <form class="no-margin" role="form" method="POST" action="{{ url('/login') }}">
                {!! csrf_field() !!}

                    <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                        <label for="email" >Email</label>
                        <div class="input-group">
                            <span class="input-group-addon">
                                <i class="fa fa-user"></i>
                            </span>
                            <input id="email" type="email" class="form-control input-lg input-transparent"
                                   value="{{ old('email') }}" placeholder="Your Email">
                            @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" >Password</label>

                        <div class="input-group input-group-lg">
                            <span class="input-group-addon">
                                <i class="fa fa-lock"></i>
                            </span>
                            <input id="password" type="password" class="form-control input-lg input-transparent"
                                   placeholder="Your Password">

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


                <div class="form-actions">
                    <button type="submit" class="btn btn-block btn-lg btn-danger">
                        <span class="small-circle"><i class="fa fa-caret-right"></i></span>
                        <small>Sign In</small>
                    </button>
                    <a class="forgot" href="{{ url('/password/reset') }}">Forgot Username or Password?</a>
                </div>
            </form>
        </div>

{!!csrf_field()!!}
电子邮件
@如果($errors->has('email'))
{{$errors->first('email')}
@恩迪夫
密码
@如果($errors->has('password'))
{{$errors->first('password')}
@恩迪夫
登录

您忘记将字段
名称
添加到电子邮件输入和密码输入中,这就是为什么您无法访问这些输入的值并触发异常

您忘记将字段
名称
添加到电子邮件输入和密码输入中,这就是为什么laravel无法访问这些输入的值并引发异常