Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Dec 15, 2021
1 parent d5dffd3 commit a074e65
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ class ForgotPasswordRequest extends Request
public function rules(): array
{
return [
'email' => 'required|email|max:255',
'reseturl' => 'required|max:255|' . Rule::in(config('appSection-authentication.allowed-reset-password-urls')),
'email' => 'required|email',
'reseturl' => [
'required',
Rule::in(config('appSection-authentication.allowed-reset-password-urls')),
],
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ class SendVerificationEmailRequest extends Request
public function rules(): array
{
return [
'verification_url' => 'required|url|' . Rule::in(config('appSection-authentication.allowed-verify-email-urls')),
'verification_url' => [
'required',
'url',
Rule::in(config('appSection-authentication.allowed-verify-email-urls')),
],
];
}

Expand Down

0 comments on commit a074e65

Please sign in to comment.