Event::firing PHP Method

firing() public static method

Get the event that is currently firing.
public static firing ( ) : string
return string
        public static function firing()
        {
            return \Illuminate\Events\Dispatcher::firing();
        }

Usage Example

Example #1
0
 /**
  * Register any other events for your application.
  *
  * @param  \Illuminate\Contracts\Events\Dispatcher  $events
  * @return void
  */
 public function boot(DispatcherContract $events)
 {
     parent::boot($events);
     \Event::listen('*', function () {
         $event = \Event::firing();
         if (starts_with($event, "Uniamo\\Events")) {
             // logger("Event fired: " . $event . "\n");
             \Cache::flush();
             // logger("Cleared cache");
         }
     });
 }
All Usage Examples Of Event::firing