src/FactoryMuffin.php
public function instance($name, array $attr = [])
    {
        $model = $this->make($name, $attr, false);

        $this->triggerCallback($model, $name);

        return $model;
    }
public function instance($name, array $attr = [])
    {
        $model = $this->make($name, $attr, false);

        $this->triggerCallback($model, $name);

        return $model;
    }
public function instance ( $ name , array $ attr = [ ] ) { $ model = $ this -> make ( $ name , $ attr , false ) ; $ this -> triggerCallback ( $ model , $ name ) ; return $ model ; }
Return an instance of the model.

This does not save it in the database. Use create for that.

@param string $name The model definition name.
@param array  $attr The model attributes.

@return object
Return an instance of the model .