Illuminate\Contracts\Container\BindingResolutionException: Target class [UserProfileController] does not exist. code example

Example 1: Illuminate\Contracts\Container\BindingResolutionExceptionTarget class [ProjectController] does not exist.

# ajouter le controller
use App\Http\Controllers\ProjectController;


Route::resource('/projects', ProjectController::class);

Example 2: Illuminate\Contracts\Container\BindingResolutionException Target class [SlugController] does not exist.

Route::get('/test/{slug}',  'App\Http\Controllers\SlugController@show' );

Tags:

Misc Example