Listener
class Listener (View source)
Properties
| protected array<int, array{connectionName: string, time: float, sql: string, bindings: array}> | $queries | The queries that have been executed. |
Methods
void
registerListeners(Dispatcher $events)
Register the appropriate listeners on the given event dispatcher.
array<int, array{sql: string, time: float}>
queries()
Returns the queries that have been executed.
void
Details
void
registerListeners(Dispatcher $events)
Register the appropriate listeners on the given event dispatcher.
array<int, array{sql: string, time: float}>
queries()
Returns the queries that have been executed.
void
onQueryExecuted(QueryExecuted $event)
Listens for the query executed event.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.