diff --git a/src/Illuminate/Database/Connection.php b/src/Illuminate/Database/Connection.php index a65d2b524815..5449fd90e31d 100755 --- a/src/Illuminate/Database/Connection.php +++ b/src/Illuminate/Database/Connection.php @@ -1096,6 +1096,16 @@ public function setEventDispatcher(Dispatcher $events) $this->events = $events; } + /** + * Unset the event dispatcher for this connection. + * + * @return void + */ + public function unsetEventDispatcher() + { + $this->events = null; + } + /** * Determine if the connection in a "dry run". *