I would like to know how to avoid an error of the type NotFoundHttpException in RouteCollection.php line 161 (or any other error that informs the user of what happens in laravel) when entering manually or trying to manipulate the address bar by placing some text or path that does not exist. I know that you can put the debug to false hidden this information, but the screen would come with the "Opps", which should also not appear when entering something that does not exist in the address bar. I know there are several methods to achieve this but I would like to know which is the most used and the most effective.
In case someone has come here and does not understand what I mean, I'll give a more representative example.
We have this route
and someone has to modify it and put something like that
in this case the screen with the Opps would appear if the debug is false or with the NotFoundHttpException if the debug is true, what I want to know is the best system to prevent these screens from being displayed.