message: "This action is unauthorized."报错
laravel 报错
{message: “This action is unauthorized.”,…}
exception: “Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException”
file: “/home/xylon/Project/xylon98/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php”
line: 385
message: “This action is unauthorized.”
trace: [{,…},…]
解决方式
Request 文件内的authorize函数,返回值改成true
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: