Fix for Illuminate\Contracts\Container\BindingResolutionException Target class [MessagesController] does not exist. code example
Example: Illuminate\Contracts\Container\BindingResolutionExceptionTarget class [ProjectController] does not exist.
# ajouter le controller
use App\Http\Controllers\ProjectController;
Route::resource('/projects', ProjectController::class);