Illuminate\Contracts\Container\BindingResolutionException Target class [HomeController] does not exist.

PHP
<?php

use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route; 
use App\Http\Controllers\HomeController; # don't forgot to add this



Route::get('/home', [HomeController::class, 'index']);
Target class [PagesController] does not exist.Route::get('/test/{slug}',  'App\Http\Controllers\SlugController@show' );
Source

Also in PHP: