Skip to content

Commit 515c3a6

Browse files
JamesFreemanhailwood
authored andcommitted
Fix laravel 10 exceptions
1 parent c0e3549 commit 515c3a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ return Application::configure(basePath: dirname(__DIR__))
6262

6363
#### Laravel 8-10
6464

65-
Use the `reportable` method in the `App\Exceptions\Handler` class:
65+
Use the `renderable` method in the `App\Exceptions\Handler` class:
6666

6767
```php
6868
public function register()
6969
{
70-
$this->reportable(function (OAuthException $e) {
70+
$this->renderable(function (OAuthException $e) {
7171
// Handle when the user clicks cancel on the Xero authorization screen
7272
return redirect('/my/xero/connect/page')->with('errorMessage', $e->getMessage());
7373
});

0 commit comments

Comments
 (0)