laravel post提交数据时显示异常

post提交数据时候显示如下:

The page has expired due to inactivity. 

Please refresh and try again

这是由于在laravel框架中有此要求:任何指向 web 中 POST, PUT 或 DELETE 路由的 HTML 表单请求都应该包含一个 CSRF 令牌,否则,这个请求将会被拒绝。

eg:

<form method="POST" action="/profile">
{{ csrf_field() }}
    ...
</form>
原文地址:https://www.cnblogs.com/lxwphp/p/15454276.html