redirect = route('users.index'); return [ 'page' => ['nullable', 'numeric', 'min:1'] ]; } public function getDto(): Index { return new Index( captchaTokenDto: new CaptchaToken(), page: (int) $this->input('page', 1) ); } }