code: public function query($query, $default = null)
      {
          $query = str_replace('*', '%', $query);
          $meta = $this->metaModel::where('key', 'LIKE', $query)->get(['key', 'value', 'type']);
  
          if ($meta->isEmpty()) {
              return $default;
          }
  
          $data = [];
          foreach ($meta as $m) {
              $data[$m->key] = $m->value;
          }
  
          return $data;
      }
docs: Get multiple meta key value pairs using wildcard "*"
  
  @param      $query
  @param null $default
  
  @return array