src/Model/Article.php
public function attach(string $field, Model $item): self
    {
        $this->attachment[$field][] = $item;

        return $this;
    }
public function attach(string $field, Model $item): self
    {
        $this->attachment[$field][] = $item;

        return $this;
    }
public function attach ( string $ field , Model $ item ) : self { $ this -> attachment [ $ field ] [ ] = $ item ; return $ this ; }
add attach an attachment to this model
add attach an attachment to this model