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();
    }