Created
November 13, 2017 14:02
-
-
Save Neoglyph/a8872b8941b16901f882bffc685935cc to your computer and use it in GitHub Desktop.
Remove events - Laravel Model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dispatcher = Model::getEventDispatcher() | |
// Remove Dispatcher Model::unsetEventDispatcher() | |
//DO THINGS $model->save(); | |
// Re-add Dispatcher Model::setEventDispatcher($dispatcher); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment