/** * Remove all of the event listeners for the model * Also flush registry of models that had events booted * Allows painless unit testing. * * @override * @return void */ public static function flushEventListeners() { parent::flushEventListeners(); static::$eventsBooted = []; }