Join GitHub today
[5.6] Add unset event dispatcher for connections #23832
Hello Laravel folks,
This Pull Request introduces the method unsetEventDispatcher for database connections.
This is motivated by the fact that in tests, when using the RefreshDatabase trait, transactions events are dispatched and may interfer with the application testing itself when it relies on events like these ( for further info, see laravel/ideas#1094).