Welcome Guest, Not a member yet? Register   Sign In
Do I need to set all my routes in Routes.php?
#9

The new and edit methods are intended to return forms, based on Ruby on Rails, IIRC.

While it might feel cumbersome at first to record every single route in the routes file, I can say from experience it becomes nice. It acts as documentation about what routes are in the system, making it simple to look up what controller/method is handling that route. It also provides a lot of extra features that you don't get just by auto-routing, including ensuring a route only handles the HTTP verb it's supposed to.
Reply


Messages In This Thread
RE: Do I need to set all my routes in Routes.php? - by kilishan - 08-11-2019, 08:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB