Reputation: 7416
I was wondering how you find it most easy to setup your controllers. Do you use one controller pr. sub-section of your site (ie. “Friends”, “Inbox”, “My account” etc.), or do you just use one controller that keeps all of the sub-sections?
Upvotes: 0
Views: 221
Reputation: 2318
I use them as follows
-User
---login
---register
---logout
---forgotpassword
-Messages
---Inbox
---Sent
---Archived
-Account
---Login
---Notifications
---Billing
etc down the line
this keeps your codebase neat and tidy
if you want your url to be like http://mysite.com/login then you can set a custom route in config/routes.php
Upvotes: 1