我的 Laravel 项目在此链接中
http://localhost/demo/public // laravel project
我有这个外部 HTML 表单
http://localhost/attendance
现在我想将数据从表单发送到 Laravel,但出现此错误
419页面已过期
所以在我的 Laravel 项目 VerifyCsrfToken 类中我写了这个
class VerifyCsrfToken extends Middleware
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'http://localhost/attendance'
];
}
但仍然得到同样的错误
419页面已过期
隔江千里
慕尼黑的夜晚无繁华