"message": "Target class [AuthController] does not exist.", "exception": "Illuminate\\Contracts\\Container\\BindingResolutionException", 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;
Route::get('/home', [HomeController::class, 'index']);
Example 2: Illuminate\Contracts\Container\BindingResolutionException Target class [SlugController] does not exist.
Route::get('/test/{slug}', 'App\Http\Controllers\SlugController@show' );