📜  嵌套资源 laravel - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:17.840000             🧑  作者: Mango

代码示例1
Sometimes you may need to define routes to a nested resource. 
For example, a photo resource may have multiple comments that may be
attached to the photo. To nest the resource controllers, 
you may use "dot" notation in your route declaration:

Route::resource('photos.comments', PhotoCommentController::class);
//return Route :
/photos/{photo}/comments/{comment}