Looking for a way to get event name which fires in booted method in string. Instead of : ```php protected static function booted() { static::updating(function (self $m) { //same thing }); static::updated(function (self $m) { //same thing }); } ``` I wish i could able to do this: ```php if (in_array($event = static::getEventName(), ['updating', 'updated'])) { static::$event(function (self $m) { // }); } ```
Looking for a way to get event name which fires in booted method in string.
Instead of :
I wish i could able to do this: