exception - Laravel: how to prevent a MethodNotAllowedHttpException in RouteCollection.php when someone access a post-route without giving post parameters? -


laravel: how prevent methodnotallowedhttpexception in routecollection.php when access post-route without giving post parameters?

when define post route accessable post request. if call url normaly in browser, throws exception. how prevent this?

anyone can request of routes using method isn't allowed. can make view exception in resources/views/errors folder. laravel comes error page http status code 503 (service unavailable error) default.

the http status code methodnotallowedhttpexception 405, making view called 405.blade.php cause laravel present view instead of methodnotallowedhttpexception message.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -