Illuminate\Database\Eloquent\Model::unsetEventDispatcher PHP Method

unsetEventDispatcher() public static method

Unset the event dispatcher for models.
public static unsetEventDispatcher ( ) : void
return void
    public static function unsetEventDispatcher()
    {
        static::$dispatcher = null;
    }

Usage Example

 /**
  * Tear down Eloquent.
  */
 public static function tearDownAfterClass()
 {
     Eloquent::unsetEventDispatcher();
     Eloquent::unsetConnectionResolver();
 }
All Usage Examples Of Illuminate\Database\Eloquent\Model::unsetEventDispatcher
Model