[Solved] Target class Controller does not exist

The controller does not exist

“Target class Controller does not exist” issue comes in Laravel 8. One simple trick can solve this issue. This error comes in Laravel new version because there is no namespace prefix being applied to your route groups that your routes are loaded into. In the old version of Laravel, the RouteServiceProvider contained a $namespace property. In the old version property’s value … Read more