Created
May 31, 2022 00:23
-
-
Save vicentimartins/7576312a3bc65200f70cda5cb34454b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function rules(): array | |
{ | |
return [ | |
'password' => [ | |
'required', | |
Password::min(8)->letters()->numbers()->mixedCase() | |
], | |
'password_confirm' => [ | |
'same:password', | |
'required', | |
], | |
'reset_token' => [ | |
'required', | |
'exists:MyModel::class,token' | |
] | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment