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