Route::get('/posts/{post}', [PostController::class, 'show'])
->name('posts.show')
->where('post', '[0-9]+');
参考:ドットインストール『Laravel 8入門 CRUD処理編』
Route::get('/posts/{post}', [PostController::class, 'show'])
->name('posts.show')
->where('post', '[0-9]+');
参考:ドットインストール『Laravel 8入門 CRUD処理編』