In simple, just assume you are overriding the vendor folder. How will you do it?
First, if you building some package then overriding inside your package.
Second, Laravel app folder where everything is already registered for you. Just register the same route in the web.php file and transfer your route to the controller where you want. Laravel always hit the top-level route.