EventHandler
class EventHandler
Properties
| static protected array<class-string, string> | $eventHandlerMap | Map event handlers to events. |
|
| static protected array<class-string, string> | $authEventHandlerMap | Map authentication event handlers to events. |
Methods
void
void
void
__call(string $method, array $arguments)
Pass through the event and capture any errors.
void
void
void
transactionEventHandler(TransactionBeginning|TransactionCommitted|TransactionRolledBack $event)
Handle a SQL transaction event (begin, commit, rollback).
void
void
void
sanctumTokenAuthenticatedHandler(TokenAuthenticated $event)
Handle a Sanctum token authenticated event.
Details
at line 58
__construct(Container $container, array $config)
Create a new event handler instance.
at line 71
void
subscribe(Dispatcher $dispatcher)
Attach all event handlers.
at line 95
void
subscribeAuthEvents(Dispatcher $dispatcher)
Attach all authentication event handlers.
at line 105
void
__call(string $method, array $arguments)
Pass through the event and capture any errors.
at line 123
protected void
routeMatchedHandler(RouteMatched $match)
Handle a route matched event.
at line 142
protected void
queryExecutedHandler(QueryExecuted $query)
Handle a SQL query executed event.
at line 166
protected void
transactionEventHandler(TransactionBeginning|TransactionCommitted|TransactionRolledBack $event)
Handle a SQL transaction event (begin, commit, rollback).
at line 181
protected void
messageLoggedHandler(MessageLogged $logEntry)
Handle a message logged event.
at line 195
protected void
authenticatedHandler(Authenticated $event)
Handle an authenticated event.
at line 203
protected void
sanctumTokenAuthenticatedHandler(TokenAuthenticated $event)
Handle a Sanctum token authenticated event.