Problem description
Project using laravel5.4 DingoAPI and JWT plug-in to open API interface, the problem is that when the user does not preach identity token or token expired, token format wrong cases, such as return as shown in the figure below the HTTP status=500, I want to change into other states (such as: 400, etc.),
I also refer to the released yesterday "Laravel tutorial - practical framework API server" way of the section changes, but still couldn't succeed, warrior, please give directions,
CodePudding user response:
https://github.com/liyu001989/dingo-api-wi...
Chinese document has provided a custom exception response, you can refer to the
CodePudding user response:
How to solve the building Lord