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