Skip to content

Conversation

markstory
Copy link
Member

@markstory markstory added this to the 3.x milestone Mar 19, 2016

Router::scope('/api', function ($routes) {
$routes->resources('Articles', function ($routes) {
$routes->resources('Comments', ['prefix' => 'articles']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When creating a new prefix like Router::prefix('Articles', ...) I use an uppercase A, why do we have lowercase in this case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scope helper underscores the name for the URL segment and prefix name. This code doesn't do any inflection.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

lorenzo added a commit that referenced this pull request Mar 20, 2016
Add docs for nested resource routing.
@lorenzo lorenzo merged commit 12df9f8 into 3.3 Mar 20, 2016
@josegonzalez josegonzalez deleted the 3.3-nested-resources branch March 20, 2016 09:32
okinaka added a commit that referenced this pull request Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants