Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
anilkumarthakur60 committed Mar 31, 2023
1 parent 75d406d commit 3939c7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Providers/ApiExceptionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ public function boot()
$this->publishes([
__DIR__ . '/../config/exception.php' => config_path('exception.php'),
], 'config');
$this->mergeConfigFrom(__DIR__ . '/../config/exception.php', 'exception');

}


public function register()
{
$this->mergeConfigFrom(__DIR__ . '/../config/exception.php', 'exception');
}

}
1 change: 1 addition & 0 deletions src/Traits/ApiExceptionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ protected function apiException($request, $exception): JsonResponse
return $this->postTooLargeExceptionResponse($exception);
}


return parent::render($request, $exception);
}

Expand Down

0 comments on commit 3939c7a

Please sign in to comment.