From f907ae2bc0d0eec9f279615afdb1c7a9ae9146e6 Mon Sep 17 00:00:00 2001 From: shailesh Date: Mon, 30 Sep 2024 14:22:42 +0530 Subject: [PATCH] fix(routes): correct route method post to get --- examples/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); });