Skip to content

[9.x] Copy locale and defaultLocale from original request#42080

Merged
taylorotwell merged 3 commits into
laravel:9.xfrom
juukie:formrequest-locales
Apr 22, 2022
Merged

[9.x] Copy locale and defaultLocale from original request#42080
taylorotwell merged 3 commits into
laravel:9.xfrom
juukie:formrequest-locales

Conversation

@juukie
Copy link
Copy Markdown
Contributor

@juukie juukie commented Apr 21, 2022

When a FormRequest is created from the original request, the values locale and defaultLocale won't be copied over.
Hopefully this will be a correct pull request to solve the problem.

@taylorotwell
Copy link
Copy Markdown
Member

Those are protected properties?

@juukie
Copy link
Copy Markdown
Contributor Author

juukie commented Apr 22, 2022

@taylorotwell Sorry those are protected indeed. I've changed it to getters 👍 .

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