src/Mappable.php
protected function saveMapped()
    {
        foreach (array_unique($this->targetsToSave) as $target) {
            $target->save();
        }

        $this->targetsToSave = [];
    }
protected function saveMapped()
    {
        foreach (array_unique($this->targetsToSave) as $target) {
            $target->save();
        }

        $this->targetsToSave = [];
    }
protected function saveMapped ( ) { foreach ( array_unique ( $ this -> targetsToSave ) as $ target ) { $ target -> save ( ) ; } $ this -> targetsToSave = [ ] ; }
Save mapped relations.

@return void
Save mapped relations .