Answer Posted / surbhi
All the event classes in Laravel are stored in the app/Events folder and the listeners are stored in the app/Listeners folder.
The artisan command for generating events and listeners in your web application is shown below -
php artisan event:generate
This command generates the events and listeners to the respective folders as discussed above.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the official packages provided by laravel?
What is a session in laravel?
How do you call artisan command in laravel?
What are guards in laravel?
What is controller middleware in laravel?
How to localize resource uris in laravel?
What is binding in laravel?
What does xss stand for?
What are Global Middleware and Route Middleware ?
Explain the types of dependency injection?
What is facade and how it is used in laravel?
Explain how to resolve class instance out of the container in laravel?
How to bind a service container to a service provide.
Is laravel object oriented?
Explain Events and Listeners ?