plugin management + user tables and torrents table text column migrate

This commit is contained in:
xiaomlove
2025-01-19 14:37:00 +08:00
parent 0f88ab8d82
commit 403a9447a9
66 changed files with 1432 additions and 786 deletions

View File

@@ -42,6 +42,9 @@ class Handler extends ExceptionHandler
*/
public function register()
{
if (app()->runningInConsole()) {
return;
}
$this->reportable(function (InsufficientPermissionException $e) {
if (request()->expectsJson()) {
return response()->json(fail($e->getMessage(), request()->all()), 403);
@@ -55,9 +58,9 @@ class Handler extends ExceptionHandler
});
//Other Only handle in json request
// if (!request()->expectsJson()) {
// return;
// }
if (!request()->expectsJson()) {
return;
}
$this->renderable(function (AuthenticationException $e) {
return response()->json(fail($e->getMessage(), ['guards' => $e->guards()]), 401);