I want to know what events are fired by Laravel core libraries. I want to get the complete list, such as laravel.query
and laravel.done
.
There are four events listed at the official docs, but I think Laravel has more events than these four!
Laravel doesn't actually fire as many events as you'd think. While it does make use of the Event system it's there for developers to use within there applications. Anyway, here's a list I compiled.
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
eloquent.booted: {$model}
eloquent.booting: {$model}
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.
eloquent.{event}: {classname}
I'm not going to say this is absolutely everything but it should be at least 99% of it.