This package can automatically discover routes for controllers and views in your Laravel application. This isn't an all-in approach. While using use auto discovery, you can still register routes like you're used to.
// typically in a routes fileDiscover::controllers()->in($whateverDirectoryYouPrefer);Discover::views()->in($whateverDirectoryYouPrefer);// other routes
Using PHP attributes you can manipulate discovered routes: you can set a route name, add some middleware, or ...
Here's how you would add middleware to a controller whose's route will be auto discovered.