当前位置:网站首页>Laravel post shows an exception when submitting data

Laravel post shows an exception when submitting data

2022-07-07 16:20:00 Full stack programmer webmaster

post Submit data The time is shown as follows :

The page has expired due to inactivity. 

Please refresh and try again

This is due to the laravel This is required in the framework : Any direction web in POST, PUT or DELETE The routing HTML Every form request should contain a CSRF token , otherwise , This request will be rejected .

eg:

<form method="POST" action="/profile">
{
    { csrf_field() }}
    ...
</form>

Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/113211.html Link to the original text :https://javaforall.cn

原网站

版权声明
本文为[Full stack programmer webmaster]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071406057665.html

随机推荐