original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Include pivot table data to the response.
  
  @param  Pivot $pivot
  @return \League\Fractal\Resource\ResourceInterface|bool
docstring_tokens: Include pivot table data to the response .