Level 102
It's
:href="route('questions.create', {id: 1})"
It takes the route name, not path. If you want to use the path, don't use ziggy
:href="questions/create/1"
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
<Link :href="route('questions/create/1')" class="ml-4 text-sm text-gray-700 underline">New </Link>
Route::get('/questions/create/{id}', [QuestionController::class, 'create'])->name('questions.create');
It's
:href="route('questions.create', {id: 1})"
It takes the route name, not path. If you want to use the path, don't use ziggy
:href="questions/create/1"
Please or to participate in this conversation.