Baum\Move::fireMoveEvent PHP Method

fireMoveEvent() protected method

Fire the given move event for the model.
protected fireMoveEvent ( string $event, boolean $halt = true ) : mixed
$event string
$halt boolean
return mixed
    protected function fireMoveEvent($event, $halt = true)
    {
        if (!isset(static::$dispatcher)) {
            return true;
        }
        // Basically the same as \Illuminate\Database\Eloquent\Model->fireModelEvent
        // but we relay the event into the node instance.
        $event = "eloquent.{$event}: " . get_class($this->node);
        $method = $halt ? 'until' : 'fire';
        return static::$dispatcher->{$method}($event, $this->node);
    }