Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.2] Fix replacing route default parameters. #13514

Merged
merged 1 commit into from
May 11, 2016
Merged

[5.2] Fix replacing route default parameters. #13514

merged 1 commit into from
May 11, 2016

Conversation

butschster
Copy link
Contributor

Route::get('foo/{bar?}')->defaults('bar', 'default');

If we create request http:\\localhost\foo\bar

Before

dd(Request::route()->parameters())

// return 
[
    'bar' => 'default'
]

After

dd(Request::route()->parameters())

// return 
[
    'bar' => 'bar'
]

@taylorotwell taylorotwell merged commit e164b5e into laravel:5.2 May 11, 2016
lindyhopchris added a commit to lindyhopchris/framework that referenced this pull request Jan 24, 2017
rizqyhi added a commit to dicoding-dev/L42x that referenced this pull request Jul 27, 2023
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