public static function flushEventListeners()
    {
        if (!isset(static::$dispatcher)) {
            return;
        }

        $instance = new static;

        foreach ($instance->getObservableEvents() as $event) {
            static::$dispatcher->forget("eloquent.{$event}: ".static::class);
        }
    }
public static function flushEventListeners()
    {
        if (!isset(static::$dispatcher)) {
            return;
        }

        $instance = new static;

        foreach ($instance->getObservableEvents() as $event) {
            static::$dispatcher->forget("eloquent.{$event}: ".static::class);
        }
    }
public static function flushEventListeners ( ) { if ( ! isset ( static :: $ dispatcher ) ) { return ; } $ instance = new static ; foreach ( $ instance -> getObservableEvents ( ) as $ event ) { static :: $ dispatcher -> forget ( "eloquent.{$event}: " . static :: class ) ; } }
Remove all of the event listeners for the model.

@return void
Remove all of the event listeners for the model .