LMongo\Eloquent\Model::flushEventListeners PHP Метод

flushEventListeners() публичный статический Метод

Remove all of the event listeners for the model.
public static flushEventListeners ( ) : void
Результат void
    public static function flushEventListeners()
    {
        if (!isset(static::$dispatcher)) {
            return;
        }
        $instance = new static();
        foreach ($instance->getObservableEvents() as $event) {
            static::$dispatcher->forget("lmongo.{$event}: " . get_called_class());
        }
    }
Model