['required', 'email', 'max:255'], 'password' => ['required', 'min:3'], 'remember' => ['nullable', 'boolean'], ]; } public function getDto(): Authorization { return new Authorization( email: $this->input('email'), password: $this->input('password'), remember: (bool) $this->input('remember', false) ); } }