Skip to content

Cannot Custom Handle Laravel\Passport\Exceptions\OAuthServerException in Laravel 11 #1756

Closed
@rulim34

Description

@rulim34

Passport Version

12.2.0

Laravel Version

11.10.0

PHP Version

8.2.19

Database Driver & Version

MariaDB docker

Description

I tried to custom render Laravel\Passport\Exceptions\OAuthServerException on Laravel 11 as per the documentation. But it doesn't work and just return the default JSON response.
image
image
image

Steps To Reproduce

  1. Install Laravel 11
  2. Install Passport 12
  3. Setup custom render

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions