Skip to content

Updated route any to include all supported verbs Fixes #20697 - #20698

Merged
taylorotwell merged 3 commits into
laravel:5.4from
msonowal:patch-1
Aug 23, 2017
Merged

Updated route any to include all supported verbs Fixes #20697#20698
taylorotwell merged 3 commits into
laravel:5.4from
msonowal:patch-1

Conversation

@msonowal

@msonowal msonowal commented Aug 23, 2017

Copy link
Copy Markdown
Contributor

added OPTIONS as route any which to be referenced from own static supported verbs
Fixes #20697

added OPTIONS as route any which to be referenced from own static supported verbs
Comment thread src/Illuminate/Routing/Router.php Outdated
public function any($uri, $action = null)
{
$verbs = ['GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE'];
$verbs = self::$verbs;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can't you just inline this now in the line below?

@taylorotwell
taylorotwell merged commit 8061d9b into laravel:5.4 Aug 23, 2017
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.

3 participants