public function getMeta($key, $default = null)
    {
        $meta = $this->meta()->where('key', $key)->get();

        if ($meta->count() <= 1) {
            return $meta->count() == 1 ? $meta->first() : $default;
        }

        return $meta;
    }
public function getMeta($key, $default = null)
    {
        $meta = $this->meta()->where('key', $key)->get();

        if ($meta->count() <= 1) {
            return $meta->count() == 1 ? $meta->first() : $default;
        }

        return $meta;
    }
public function getMeta ( $ key , $ default = null ) { $ meta = $ this -> meta ( ) -> where ( 'key' , $ key ) -> get ( ) ; if ( $ meta -> count ( ) <= 1 ) { return $ meta -> count ( ) == 1 ? $ meta -> first ( ) : $ default ; } return $ meta ; }
Get meta.

@param  string $key
@param  mixed $default
@return object
Get meta .