Skip to content

Commit

Permalink
Work on wording.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 18, 2014
1 parent c3734e1 commit e1c5ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ By default, all resource controller actions have a route name; however, you can

#### Handling Nested Resource Controllers

If you need to handle a hierarchical structure inside your resource controllers, you can use the dot syntax in your route name:
To "nest" resource controllers, use "dot" notation in your route declaration:

Route::resource('photos.comments', 'PhotoCommentController');

Which allows you, for example, to declare an action to respond to the `photos/{photoResource}/comments/{commentResource}` URI:
This route will register a "nested" resource that may be accessed with URLs like the following: `photos/{photoResource}/comments/{commentResource}`.

class PhotoCommentController extends BaseController {

Expand Down

0 comments on commit e1c5ef3

Please sign in to comment.