Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After merging the changes from #10488 I started writing the documentation and noticed that most of the other RouteBuilder methods use 'path' and not 'controller' as an option. Given that changing the path was the original intent, I thought that might be a more consistent option name. Furthermore, the previous changes would result in awkward reverse routing scenarios where the routing parameter would not match the controller/model name, and instead match the resource name. e.g. `resources('BlogPosts', ['controller' => 'articles'])` would use `blog_post_id` as the routing parameter instead of `article_id` which better matches the conventions used elsewhere in the framework.
- Loading branch information
Showing
3 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters