Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 15, 2022 01:25
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 parzibyte/ad31b11b91431e0fd9f277c8efa16698 to your computer and use it in GitHub Desktop.
Save parzibyte/ad31b11b91431e0fd9f277c8efa16698 to your computer and use it in GitHub Desktop.
<?php
/**
* Get the validation rules that apply to the request.
*
* @return array<string, mixed>
*/
public function rules()
{
return [
"name" => "required",
"email" => "email:rfc",
"password" => "required",
"passwordConfirm" => "required|same:password",
"rol" => "required",
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment