original_string: protected function attachUsingCustomClass($id, array $attributes)
      {
          $records = $this->formatAttachRecords(
              $this->parseIds($id), $attributes
          );
  
          foreach ($records as $record) {
              $this->newPivot($record, false)->save();
          }
      }
code: protected function attachUsingCustomClass($id, array $attributes)
      {
          $records = $this->formatAttachRecords(
              $this->parseIds($id), $attributes
          );
  
          foreach ($records as $record) {
              $this->newPivot($record, false)->save();
          }
      }
code_tokens: protected function attachUsingCustomClass ( $ id , array $ attributes ) { $ records = $ this -> formatAttachRecords ( $ this -> parseIds ( $ id ) , $ attributes ) ; foreach ( $ records as $ record ) { $ this -> newPivot ( $ record , false ) -> save ( ) ; } }
docstring: Attach a model to the parent using a custom class.
  
  @param  mixed  $id
  @param  array  $attributes
  @return void
docstring_tokens: Attach a model to the parent using a custom class .