From 515c3a657859fceed46a8b6a5369dfecd88689c7 Mon Sep 17 00:00:00 2001 From: James Freeman Date: Fri, 6 Dec 2024 07:53:27 +0000 Subject: [PATCH] Fix laravel 10 exceptions --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 3ee30f1..2978edd 100644 --- a/docs/index.md +++ b/docs/index.md @@ -62,12 +62,12 @@ return Application::configure(basePath: dirname(__DIR__)) #### Laravel 8-10 -Use the `reportable` method in the `App\Exceptions\Handler` class: +Use the `renderable` method in the `App\Exceptions\Handler` class: ```php public function register() { - $this->reportable(function (OAuthException $e) { + $this->renderable(function (OAuthException $e) { // Handle when the user clicks cancel on the Xero authorization screen return redirect('/my/xero/connect/page')->with('errorMessage', $e->getMessage()); });