src/Transformer.php
protected function includePivot(Pivot $pivot)
    {
        if (! method_exists($this, 'transformPivot')) {
            return false;
        }

        return app(Responder::class)->transform($pivot, function ($pivot) {
            return $this->transformPivot($pivot);
        })->getResource();
    }
protected function includePivot(Pivot $pivot)
    {
        if (! method_exists($this, 'transformPivot')) {
            return false;
        }

        return app(Responder::class)->transform($pivot, function ($pivot) {
            return $this->transformPivot($pivot);
        })->getResource();
    }
protected function includePivot ( Pivot $ pivot ) { if ( ! method_exists ( $ this , 'transformPivot' ) ) { return false ; } return app ( Responder :: class ) -> transform ( $ pivot , function ( $ pivot ) { return $ this -> transformPivot ( $ pivot ) ; } ) -> getResource ( ) ; }
Include pivot table data to the response.

@param  Pivot $pivot
@return \League\Fractal\Resource\ResourceInterface|bool
Include pivot table data to the response .