Laravel 4.2 Controller Subfolder routing

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

1

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

artisan

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *