419对不起,您的会话已过期。请刷新并重试。我提交表单时出现此错误

即使在表单提交过程中输入{{ csrf_field() }},我仍然遇到此错误。

可能是什么问题?

<form action="{{ route('e-account-post') }}" method="POST" id="e-account" enctype="multipart/form-data">
    {{ csrf_field() }}
    <div class="row">
        <div class="form-group col-lg-6 col-md-6 col-xs-12">
            <div class="field-label">Full Name <span class="required">*</span></div>
            <input type="text" class="form-control" name="full_name" value="" placeholder="Full Name">
        </div>
        <div class="col-12 text-center">
            <button class="btn credit-btn mt-30" type="submit">Send</button>
        </div>
</form>

下面是路线

Route::post('/e-account','FrontController@e_account_action')->name('e-account-post');

下面是控制器

public function e_account_action(Request $request)
{
   dd($request->all());
}

Laravel 5.7和项目已经上线。

本地没有问题。我通过GitLab在实时模式下设置了项目。

y4328978 回答:419对不起,您的会话已过期。请刷新并重试。我提交表单时出现此错误

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3165476.html

大家都在问