diff --git a/examples/routes.php b/examples/routes.php index 7f5f4a6..c3b0722 100644 --- a/examples/routes.php +++ b/examples/routes.php @@ -5,6 +5,6 @@ Route::get('/', [MessagesController::class, 'index'])->name('messages'); Route::get('/create', [MessagesController::class, 'create'])->name('messages.create'); Route::post('/', [MessagesController::class, 'store'])->name('messages.store'); - Route::post('/{id}', [MessagesController::class, 'show'])->name('messages.show'); + Route::get('/{id}', [MessagesController::class, 'show'])->name('messages.show'); Route::put('/{id}', [MessagesController::class, 'update'])->name('messages.update'); });