In laravel, the route is configured in web.php, with an error of 404. As a result, it would be nice to be ranked first in the order. Excuse me, why?

use laravel, to configure the route in web.php, and call web to report an error 404. As a result, the route can be accessed first. Has any friend encountered this problem?

Mar.05,2021

you post the specific code


you should write a new method on the same controller. The original resource controller overrides your newly written route


route matching problem. Be sure to pay attention to the sequence of routes

.
Menu