everyone! I tried everything and there is no way to fix this problem
laravel version 8.6.0
SalaudarController.php
<?php namespace Blog\Http\Controllers; use Illuminate\Http\Request; class SaludarController extends Controller { public function decirHola($persona= 'humano')( return "hola" . $persona . "<br /> <a href='" .route('decir.bienvenido', ["blogger" => $persona]). "'>Decir Bienvenido </a> "; ) } web.php
<?php use Illuminate\Support\Facades\Route; use Blog\app\Http\Controllers; Route::get('/hola/{persona?}', [SaludarController::class, 'decirHola']); I read the other threads of this same question, I applied all the suggestions but the problem persists. I read your suggestions

SalaudarController.phpcontroller's namespace should probably benamespace App\Http\Controllers;, at least according to convention (though you could use what you have if you really wanted to, but I wouldnt). In any event, see the question marked with the duplicate tag above for how to properly set up your routes to use your controller's namespacecomposer dump-autoloaduse App\Http\Controllers\SaludarController;? Also try with regenerate all classescomposer dump-autoload