Configure PHP Lumen 5 HTTP Exception Handlers with common JSON responses.
Copy (replace) only the attached files to their respective directories. app/Exceptions/Handler.php
and app/Http/Middleware/Authenticate.php
Tip: Via your .env
file you can handle the visibility of the HTTP Exception responses. APP_DEBUG=false
(for display json exception responses in production)