Skip to content

Proper way to handle Exceptions #32810

Answered by devcircus
connecteev asked this question in General
Discussion options

You must be logged in to vote

You should just be able to php artisan make:exception [NameOfException] then add logic to the render method and it should just work. I've never utilized custom exception classes, but it should work. There's no reason for the template to match the exception handler class above, just add the render or report methods as you need them.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by connecteev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants