trasa laravel
Route::get('user/{id}', function ($id) {
return 'User '.$id;
});
Enthusiastic Elephant
Route::get('user/{id}', function ($id) {
return 'User '.$id;
});
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
Route::pattern('id', '[0-9]+');
Route::get('user/{id}', function ($id) {
// Only executed if {id} is numeric...
});
Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) {
//
});