laravel 显示419错误

492 阅读1分钟

这是因为没有csrf值 在表单中添加下面的代码:

<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>" />