I just started using Laravel. When I use codeigniter or zend framework, I can organize my controller into a separate directory. For example, I can create ‘user/permission.php’ and ‘user/group.php’.
How do I do that with Laravel?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Convert
/into_. So yourcontrollers/user/permission.phpcontroller would beUPDATE:
You also have to route to the controller changing
_to.So route similar to
You can see more details on it here. http://codehappy.daylerees.com/using-controllers