*/ public function rules(): array { return [ 'name' => 'required', 'email' => 'required|email|unique:users', 'password' => ['required', Password::defaults()], 'is_admin' => 'sometimes', ]; } }