public function getMeta($key = false, $model = false)
    {
        if ($key === false) {
            return $this->meta()->get();
        }
        if ($meta = $this->meta()->whereKey($key)->first()) {
            return ($model == false) ? $meta->value : $meta;
        }

        return false;
    }
public function getMeta($key = false, $model = false)
    {
        if ($key === false) {
            return $this->meta()->get();
        }
        if ($meta = $this->meta()->whereKey($key)->first()) {
            return ($model == false) ? $meta->value : $meta;
        }

        return false;
    }
public function getMeta ( $ key = false , $ model = false ) { if ( $ key === false ) { return $ this -> meta ( ) -> get ( ) ; } if ( $ meta = $ this -> meta ( ) -> whereKey ( $ key ) -> first ( ) ) { return ( $ model == false ) ? $ meta -> value : $ meta ; } return false ; }
Helper function to return 1 meta model if key is set, or returns the full results if not.

@param bool|false $key
@return bool
Helper function to return 1 meta model if key is set or returns the full results if not .