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
Explain homestead in laravel.
What is a repl?
What is meant by check method ?
How to retrive/get current environment in laravel.
Where do you locate route files?
What are the directory structure of laravel 5.8?
Can you explain about serialization?
What is the use of the bootstrap directory?
What are policies?
What is homestead in laravel?
How to get current url in laravel?
How to serve sites on valet?
Explain reverse routing in laravel.
What is system requirement for installation of laravel 5.2 (latest version)?
What are cookies? How to get, set, distroy cookies in laravel?