Skip to content

Commit 2e3a8c2

Browse files
authored
Update web.php
1 parent 5f17351 commit 2e3a8c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/web.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
Route::get('/posts/editpost/{post}', [PostController::class, 'edit'])->name('editform');
2828

29-
//this is while using Eloquent Model as parameter in show() rather that $id variable
29+
//this is while using Eloquent Model as parameter in show() rather that $id variable to customize the key
3030
Route::get('/posts/post/{post:id}', [PostController::class,'show'])->name('showpost');
3131

3232
Route::get('/posts/{post:id}', [PostController::class,'destroyed'])->name('deletepost');

0 commit comments

Comments
 (0)