code: protected function extractInput(array $data)
      {
          $input = [];
  
          foreach ($data as $field => $fieldData) {
              $input[$field] = $fieldData[0];
          }
  
          return $input;
      }
docs: Extract the field input from the data array.
  @param  array  $data
  @return array