Laravel 4.2 Controller Subfolder routing

This is a simple way to organize your controller files or create sub folder under the controller folder.


After you created the folder, controllers and setup your routing. Then you need to run this into your command prompt.
otherwise you’ll encounter  this error message.

ErrorException (E_WARNING). failed to open stream: No such file or directory

Run this script

artisan dump-autoload