我的 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 页面已过期