Php 由于laravel中的不活动问题,该页已过期

Php 由于laravel中的不活动问题,该页已过期,php,laravel-5,Php,Laravel 5,我在的Laravel中遇到了问题,该页面由于不活动而过期。 请刷新并重试。我还检查了{{csrf_field()},它很好,但问题仍然存在。我还检查了try-cache、view、route-clear命令,但还是运气不好。谁能告诉我是什么问题吗 表格编号: <form id="loginform" class="form-vertical" method="POST" action="{{ route('login') }}"> {{ csrf_fi

我在的Laravel中遇到了问题,该页面由于不活动而过期。 请刷新并重试。我还检查了
{{csrf_field()}
,它很好,但问题仍然存在。我还检查了try-cache、view、route-clear命令,但还是运气不好。谁能告诉我是什么问题吗

表格编号:

<form id="loginform" class="form-vertical" method="POST" action="{{ route('login') }}">
                {{ csrf_field() }}
                 <div class="control-group normal_text"> <h3><img src="{{ asset('img/logo.png') }}" alt="Logo" /></h3></div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_lg"><i class="icon-user"> </i></span>
                            <input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required autofocus placeholder="Username"/>
                            @if ($errors->has('email'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('email') }}</strong>
                                </span>
                            @endif
                        </div>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_ly"><i class="icon-lock"></i></span>
                            <input id="password" type="password" class="form-control" name="password" required placeholder="Password" />
                            @if ($errors->has('password'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('password') }}</strong>
                                </span>
                            @endif
                        </div>
                    </div>
                </div>
                <div class="form-actions">
                    <span class="pull-left"><a href="#" class="flip-link btn btn-info" id="to-recover">Lost password?</a></span>
                    <span class="pull-right"><button type="submit" class="btn btn-success">Login</button></span>
                </div>
            </form>

{{csrf_field()}}
@如果($errors->has('email'))
{{$errors->first('email')}
@恩迪夫
@如果($errors->has('password'))
{{$errors->first('password')}
@恩迪夫
登录
我已经解决了

我已经尝试了所有步骤,但问题仍然存在

主要问题是我的浏览器捕获设置

请参阅下面的屏幕截图了解更多信息


请分享
@George的代码请在上面签入我有更新表单代码不确定它是否有任何区别,但是你能用
@csrf
代替
{{csrf\u field()}
我尝试了@csrf,但遇到了同样的问题。必须使用laravel 5.6@csrf中的No luckafaik来代替您的操作方式确保清除浏览器缓存,如果您使用的是chrome,请在匿名模式下尝试。否则执行这两个命令
php-artisan-cache:clear
php-artisan-config:clear
是的,它工作正常。你帮我节省了很多时间。谢谢@R P