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 協議》,轉載必須註明作者和本文連結