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

Demo Form with Profile management #24

Merged
merged 1 commit into from
Nov 7, 2021

Conversation

krekas
Copy link
Contributor

@krekas krekas commented Nov 6, 2021

No description provided.

return [
'name' => ['required', 'string', 'max:255'],
'email' => ['required', 'email', 'string', 'max:255', Rule::unique('users')->ignore(Auth::user())],
'password' => ['sometimes', 'required_with:old_password', 'string', 'confirmed', 'min:8'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

@krekas I don't think we need required_with:old_password here, it may have been copied from another demo project where that old_password field existed.

@PovilasKorop PovilasKorop merged commit 8c11543 into LaravelDaily:main Nov 7, 2021
@krekas krekas deleted the demo-form branch November 7, 2021 17:17
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