[php] Target class controller does not exist - Laravel 8

On a freshly installed laravel 8, in the App/Providers/RouteServices.php

    * The path to the "home" route for your application.
 *
 * This is used by Laravel authentication to redirect users after login.
 *
 * @var string
 */
public const HOME = '/home';

/**
 * The controller namespace for the application.
 *
 * When present, controller route declarations will automatically be prefixed with this namespace.
 *
 * @var string|null
 */
// protected $namespace = 'App\\Http\\Controllers';

uncomment the

protected $namespace = 'App\Http\Controllers';

that should help you run laravel the old fashioned way.

Incase you are upgrading from lower versions of laravel to 8 then you might have to implicitly add the

protected $namespace = 'App\Http\Controllers';

in the RouteServices.php file for it to function the old way.