Sunday, April 16, 2017

With laravel, how can I use event and listener in the package developent

In laravel, I have my own directory structure for package develop and now I need create a event and listener, I registered in the service provider and every thing is set up, I use Event::fire() on the controller and it does not go through the fire(), nothing showing. Has anyone met this problem before?

event and listener:

controller's fire and serviceProvider:



via tao yu

Advertisement