Skip to content

Ensure email is included in state #1312

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

Merged
merged 1 commit into from
May 8, 2023
Merged

Conversation

antja0
Copy link
Contributor

@antja0 antja0 commented May 8, 2023

Previous pull request: #1309
Apologies for wrong branch @taylorotwell


If email is hidden for serialization (in the User model hidden array) the view will crash, as toArray() won't include the email.

Hiding email field in particular is useful to avoid accidentally exposing other users emails to the frontend / client.

If email is hidden for serialization (in the User model `hidden` array) the view will crash, as `toArray()` won't include the email.

Hiding email field in particular is useful to avoid accidentally exposing other users emails to the frontend / client.
@taylorotwell taylorotwell merged commit 4bbdcf0 into laravel:3.x May 8, 2023
@antja0 antja0 deleted the patch-2 branch May 8, 2023 20:41
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