public function resolve($data)
    {
        $transformable = $this->resolveTransformableItem($data);

        if (is_object($transformable) && key_exists(get_class($transformable), $this->bindings)) {
            return $this->bindings[get_class($transformable)];
        }

        if ($transformable instanceof Model) {
            return $this->resolveFromModel($transformable);
        }

        return 'data';
    }
public function resolve($data)
    {
        $transformable = $this->resolveTransformableItem($data);

        if (is_object($transformable) && key_exists(get_class($transformable), $this->bindings)) {
            return $this->bindings[get_class($transformable)];
        }

        if ($transformable instanceof Model) {
            return $this->resolveFromModel($transformable);
        }

        return 'data';
    }
public function resolve ( $ data ) { $ transformable = $ this -> resolveTransformableItem ( $ data ) ; if ( is_object ( $ transformable ) && key_exists ( get_class ( $ transformable ) , $ this -> bindings ) ) { return $ this -> bindings [ get_class ( $ transformable ) ] ; } if ( $ transformable instanceof Model ) { return $ this -> resolveFromModel ( $ transformable ) ; } return 'data' ; }
Resolve a resource key from the given data.

@param  mixed $data
@return string
Resolve a resource key from the given data .