|string> */ public function rules(): array { return [ 'data.userId' => 'required|string', 'data.operations' => 'present|array' ]; } protected function passedValidation() { $this->userId = $this->input('data.userId'); $this->operations = $this->input('data.operations'); } }