src/package/MetaHandler.php
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;
    }
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;
    }
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 ; }
Get multiple meta key value pairs using wildcard "*"

@param      $query
@param null $default

@return array
Get multiple meta key value pairs using wildcard *