When I Updated my laravel 5.4 application controller root folder to Sub Controller Directory , i changed the name of one of the folders (Controller/Subcontroller) that contains some controllers. However, You will getting the error called ErrorException in ClassLoader.php line …..
Solution :
Resolved it by using the following command –
Must on Laravel Directory First on your shell.
1 |
composer dumpautoload |
Perhaps u don’t have controller.php file in the controllers folder under http folder of ur project. Look for this file first..because in this file controller itself gets extended from base controller class, therefore it is necessary that this file should be there.