Skip to content

Conversation

@markstory
Copy link
Member

Update the documentation for the new fluent methods on Route. I've also broken the new features section up by package as it was becoming a wall of un-scanable text.

I've tried to follow the latest decisions on documenting the most recent version, and including previous version compatibility in follow up examples or in comments.

Copy link
Member

@ravage84 ravage84 left a comment

Choose a reason for hiding this comment

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

Good job! Just minor stuff as far as I skimmed through.


// Set the matching patterns for route elements
->setPatterns([
'slug' => '[a-z0-9-_]+'
Copy link
Member

Choose a reason for hiding this comment

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

comma

// Set the matching patterns for route elements
->setPatterns([
'slug' => '[a-z0-9-_]+'
'lang' => 'en|fr|es'
Copy link
Member

Choose a reason for hiding this comment

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

comma

// will simply map ":id" to $articleId in your action
'pass' => ['id', 'slug'],
// Define a pattern that `id` must match.
'id' => '[0-9]+'
Copy link
Member

Choose a reason for hiding this comment

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

comma

);

// Match multiple verbs
// Prior to 3.5 use $options[_method] to set method
Copy link
Member

Choose a reason for hiding this comment

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

$options['_method'] ?

@markstory
Copy link
Member Author

Thanks @ravage84

@ravage84 ravage84 merged commit bbbae04 into 3.next Jun 10, 2017
@ravage84 ravage84 deleted the 3next-routes branch June 10, 2017 10:51
@ravage84
Copy link
Member

Thanks!

HavokInspiration added a commit that referenced this pull request Jul 7, 2017
antograssiot added a commit that referenced this pull request Jul 10, 2017
ryoichi-u added a commit to ryoichi-u/docs that referenced this pull request Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants