So far, we've handled all route logic through a closure in our routes/web.php
file. This is an excellent choice in some cases; however, I think you'll find that the majority of your projects will require a bit more structure. Let's learn how to migrate from route closures to dedicated controllers.