Illuminate\Contracts\Container\BindingResolutionException Target class [ClearController] does not exist. code example
Example 1: Illuminate\Contracts\Container\BindingResolutionException Target class [HomeController] does not exist.
<?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']);
Example 2: Target class [Barryvdh\Cors\HandleCors] does not exist.
#Add [Barryvdh\Cors\HandleCors] to $middlewareGroups in Kernel.php
'cors' => [
\Barryvdh\Cors\HandleCors::class,
],