我在Laravel中遇到了问题,该页面由于不活动而过期。
请刷新并重试。我还检查了{{ csrf_field() }}
,它很好,但问题仍然存在。我也检查过尝试缓存,查看,清除路由命令,但运气还是很差。谁能告诉我问题是什么?
表单代码:
<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>
答案 0 :(得分:2)
我解决了。
我尝试了从https://blog.gceasy.io/2016/12/11/sys-time-greater-than-user-time/开始的所有步骤,但是问题仍然存在。
主要问题是我的浏览器捕获设置。
请参见下面的屏幕截图,了解更多信息。
https://www.5balloons.info/fixed-page-expired-due-inactivity-laravel-5/