How to fix ReflectionException: Class ClassName Not Found Laravel bug in laravel 
After creating a controller through command line you may face this type of issue.In my caseafter creating a new controller named UserController I faced this issue like class app\controllers\UserController Not found . Then I found the solution.

So if you are facing this issue try the following 3 commands in terminal/cmd.
Step1. Go to your laravel project directory in cmd.
            cd Applications/MAMP/bin/htdocs/laravel
            Here laravel is my project name.
Step 2: composer update 

Step3: composer dump-autoload

Now access your controller. The bug will fix.