Illuminate\Contracts\Container\BindingResolutionException

Target class [App\Http\Controllers\DashboardController] does not exist.

🐛 How I Ran Into This

I attempted to create a new route.

✅ Solution

The controller wasn't exists had to creata a new controller using the following command:

php artisan make:controller DashboardController

Furthermore, I declared an index method within the controller to return the dashboard view.