Skip to content

Commit

Permalink
fix(routes): correct route method post to get
Browse files Browse the repository at this point in the history
  • Loading branch information
shailesh-ladumor committed Sep 30, 2024
1 parent fee2c7b commit f907ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

0 comments on commit f907ae2

Please sign in to comment.