Skip to content

Instantly share code, notes, and snippets.

@vicentimartins
Created May 31, 2022 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vicentimartins/7576312a3bc65200f70cda5cb34454b6 to your computer and use it in GitHub Desktop.
Save vicentimartins/7576312a3bc65200f70cda5cb34454b6 to your computer and use it in GitHub Desktop.
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