Cytotoxic
113
11
Laravel

404 page instead of {METHOD} not supported for this route

Posted 1 week ago by Cytotoxic

How can I get the routes to send the user to the standard 404 page if they access a path that is not a defined route. I am getting "{METHOD} not supported for this route" while in debug mode and without debug mode it just says "Whoops, looks like something went wrong."

For instance accessing a POST only route via the browser GET I want to send to a 404 page vs this error message.

Thanks

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.