Laravel controller is not working?

Laravel controller method is not getting called. I'm trying to call a view in a controller method but it is not getting called even is not coming in constructor. No any new code is reflecting in controller.

I also faced such issue while working on a laravel project and after several rearch I found a solution which worked for me and it was really unexpected for me and that is the below command you can use in such scenario.

composer dump-autoload

Additionally, you can also use these below command collectively to avoid any other cache issue of laravel.

php artisan cache:clear
php artisan config:cache
php artisan view:clear
php artisan route:clear

Hope it will solve your problem.