代码之家  ›  专栏  ›  技术社区  ›  R P

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

  •  3
  • R P  · 技术社区  · 6 年前

    我在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>
    
    1 回复  |  直到 6 年前
        1
  •  2
  •   R P    6 年前

    我已经解决了。

    我已经尝试了 https://www.5ballons.info/fixed-page-expired-due-inactivity-laravel-5/ 中的所有步骤,但问题仍然存在。

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

    请参阅下面的屏幕截图了解更多想法。

    但问题仍然存在。

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

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

    enter image description here