Where can I get a complete list of Laravel events

Tutorials

October 26th, 2012

On StackOverflow a user asked where can they can get a complete list of Laravel events. Jason Lewis gave the answer and I figured it would be useful for others.

laravel.done
laravel.log
laravel.query
laravel.resolving
laravel.composing: {viewname}
laravel.started: {bundlename}
laravel.controller.factory
laravel.config.loader
laravel.language.loader
laravel.view.loader
laravel.view.engine
 
view.filter
 
eloquent.saving
eloquent.updated
eloquent.created
eloquent.saved
eloquent.deleting
eloquent.deleted
 
500
404

The 500 and 404 are both error related events. These are set in the routes.php file so you can see what the default listener is.

I’d like to point out that the eloquent.{event} have another variation containing the class name that is being updated.

So a big thanks to Jason for answering.

Filed in:

Eric L. Barnes

Eric is the creator of Laravel News and has been covering Laravel since 2012.