Created
November 21, 2017 07:45
-
-
Save fico7489/2bb668606260155d557149994e259678 to your computer and use it in GitHub Desktop.
Catch all events in laravel 5.5
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
\Event::listen('eloquent.*', function ($eventName, array $data) { | |
// | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment