protected function _item($data, $options = [])
    {
        $name = $this->_through;
        $parent = $this->_parent;
        $relThrough = $parent->schema()->relation($name);
        $through = $relThrough->to();
        $id = $this->_parent->id();
        $item = $through::create($id !== null ? $relThrough->match($this->_parent) : [], $options);
        $item->setAt($this->_using, $data, $options);
        return $item;
    }
protected function _item($data, $options = [])
    {
        $name = $this->_through;
        $parent = $this->_parent;
        $relThrough = $parent->schema()->relation($name);
        $through = $relThrough->to();
        $id = $this->_parent->id();
        $item = $through::create($id !== null ? $relThrough->match($this->_parent) : [], $options);
        $item->setAt($this->_using, $data, $options);
        return $item;
    }
protected function _item ( $ data , $ options = [ ] ) { $ name = $ this -> _through ; $ parent = $ this -> _parent ; $ relThrough = $ parent -> schema ( ) -> relation ( $ name ) ; $ through = $ relThrough -> to ( ) ; $ id = $ this -> _parent -> id ( ) ; $ item = $ through :: create ( $ id !== null ? $ relThrough -> match ( $ this -> _parent ) : [ ] , $ options ) ; $ item -> setAt ( $ this -> _using , $ data , $ options ) ; return $ item ; }
Create a pivot instance.

@param  mixed $data    The data.
@param  array $options Method options:
- `'exists'` _boolean_: Determines whether or not this entity exists
@return mixed          The pivot instance.
Create a pivot instance .