/** * Create a new pivot attachment record. * * @param int $id * @param bool $timed * @return array */ protected function createAttachRecord($id, $timed) { $record = parent::createAttachRecord($id, $timed); return Arr::add($record, $this->morphType, $this->morphClass); }