I am Using Laravel For API development. And Passport For Auth. Now Problem Is That...When I call My Api In Browser With GET Method....There is default error "GET Method Is not Allowed". Now I was used Below code to customize this error msg like below
if ($e instanceof \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException) { return response()->json(['error' => 'incorrect route'], 404); }
now i am using passport as auth in anyt APIs.....now i want to customize my below Screenshot msg exactly like above.......please help me to fix this
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire