Skip to content

Commit

Permalink
Break long email validation rule into multiple lines (#416)
Browse files Browse the repository at this point in the history
Co-authored-by: Amidope <noreply>
  • Loading branch information
Amidope authored Sep 22, 2024
1 parent d2c05ae commit 296d88c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion stubs/default/app/Http/Requests/ProfileUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ public function rules(): array
{
return [
'name' => ['required', 'string', 'max:255'],
'email' => ['required', 'string', 'lowercase', 'email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)],
'email' => [
'required',
'string',
'lowercase',
'email',
'max:255',
Rule::unique(User::class)->ignore($this->user()->id),
],
];
}
}

0 comments on commit 296d88c

Please sign in to comment.