Laravel Event

Event::fire('', array($bar));

Register an event listener with the dispatcher. void listen(string|array $events, mixed $listener, int $priority)

Event::listen('App\Events\UserSignup', function($bar){});
Event::listen('foo.*', function($bar){});
Event::listen('', 'FooHandler', 10);
Event::listen('', 'BarHandler', 5);

Stopping The Propagation Of An Event. You may do so using it by returning false from your handler.

Event::listen('', function($event){ return false; });

Leave a Reply

Your email address will not be published. Required fields are marked *