I didn't get you properly, this is related to the event and listener ?
you are trying to get demo event thats is already fired somewhere?
please correct me if i'am wrong.
yes exactly i want a demo of event listener
You should read this :
If still is there any query regarding this feel free to let us know.
I have read the documentation and follow the steps but till now m not able to see event result
Hi @Poonam-Kharka ,
Please share screenshots of the issues you are facing while getting the event
m not getting any result
Have you register the following in you event service provider:
Event::listen('test.registration.after', 'Webkul\Test\Listeners\[email protected]');
here let suppose you are getting an event(test.registration.after) and here Demo is the class and registerUser is a method of that class that will handle the event(test.registration.after) operation. and demo file must be created in Webkul\Test\Listeners folder .
did you follow these above steps?
rahul last edited by
Kindly check your mail configuration in .env file , you have not provided correct details for following fields.
MAIL_DRIVER=xxxxxx MAIL_HOST=xxxxxx MAIL_PORT=xxxxxx MAIL_USERNAME=xxxxxx MAIL_PASSWORD=xxxxxx MAIL_ENCRYPTION=xxxxxx SHOP_MAIL_FROM=xxxxxx ADMIN_MAIL_TO=xxxxxx
thank you for the reply. I have already configured .env file and put smtp.mailtrap credentials and i just make listener with hello message and registered it on EventServiceProvider. but it is not showing hello
Can you please provide screenshots of your event listener,and event service provider.