使用Larave5.6l提交POST请求出现The page has expired due to inactivity错误

使用Larave5.6l提交POST请求出现The page has expired due to inactivity错误

一般是由于没有添加 csrf造成的

在表单下面的 第一个行 添加如下代码即可

<input type="hidden" name="_token" value="{{csrf_token()}}">

切记是第一行

如果还有问题,那么检查form下的 第一行是不是以上数据  如果有其他的数据请放到别的行

原文地址:https://www.cnblogs.com/baker95935/p/9300388.html