public function write($settings) : ?Model
    {
        if (!$this->enabled) {
            return null;
        }

        $settings = $this->parseSettings($settings);

        return Tracker::createNew($this->getPayload($settings));
    }
public function write($settings) : ?Model
    {
        if (!$this->enabled) {
            return null;
        }

        $settings = $this->parseSettings($settings);

        return Tracker::createNew($this->getPayload($settings));
    }
public function write ( $ settings ) : ? Model { if ( ! $ this -> enabled ) { return null ; } $ settings = $ this -> parseSettings ( $ settings ) ; return Tracker :: createNew ( $ this -> getPayload ( $ settings ) ) ; }
Writes registered tracks

@param \Laranix\Tracker\Settings|array $settings
@return \Laranix\Support\Database\Model|\Laranix\Tracker\Tracker|null
@throws \Laranix\Support\Exception\InvalidTypeException
Writes registered tracks