Skip to content

Commit

Permalink
Fix laravel 10 exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesFreeman authored and hailwood committed Dec 18, 2024
1 parent c0e3549 commit 515c3a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});
Expand Down

0 comments on commit 515c3a6

Please sign in to comment.