src/Present.php
public function with($transformer)
    {
        $concrete = self::getTransformerFactory()->make($transformer);

        $this->resource->setTransformer($concrete);

        return Presentation::of($this->resource);
    }
public function with($transformer)
    {
        $concrete = self::getTransformerFactory()->make($transformer);

        $this->resource->setTransformer($concrete);

        return Presentation::of($this->resource);
    }
public function with ( $ transformer ) { $ concrete = self :: getTransformerFactory ( ) -> make ( $ transformer ) ; $ this -> resource -> setTransformer ( $ concrete ) ; return Presentation :: of ( $ this -> resource ) ; }
Set a transformer on the resource.

@param mixed|callable $transformer
@return \Presentit\Presentation
Set a transformer on the resource .