'required|min-str-len:5|max-str-len:30', 'password' => 'required|min-str-len:5|max-str-len:30', 'email' => 'required|email', 'user_photo' => '' ]; } public function rulesForUpdate(): array { return [ 'username' => 'required|min-str-len:5|max-str-len:30', 'password' => '', 'email' => 'required|email', 'user_photo' => '' ]; } }