@johnjehunglin sorry for the late reply. I'm very busy recently and actually never thought I'd receive notifications again.
But coming to your issue, did you pass on the slug for the detail route as required below:
Route::get('{slug}', function ($slug) {
return view('welcome');
})->name('post-detail');
There may be one of two problems: either the slug column is missing from your posts table or the slug wasn't passed. If you read the tutorial series to the end, you'd see that I later modified the posts table to accommodate the slug column.
@johnjehunglin sorry for the late reply. I'm very busy recently and actually never thought I'd receive notifications again.
But coming to your issue, did you pass on the
slug
for the detail route as required below:Route::get('{slug}', function ($slug) {
return view('welcome');
})->name('post-detail');
There may be one of two problems: either the slug column is missing from your posts table or the slug wasn't passed. If you read the tutorial series to the end, you'd see that I later modified the posts table to accommodate the
slug
column.Also, you can generate an slug in the Livewire component using
Illuminate\Support\Str