S
S
Sergei2016-11-16 21:10:29
Laravel
Sergei, 2016-11-16 21:10:29

How to put a listener on all eloquent requests?

Hello. I ran into a problem when implementing eloquent into someone else's self-writing. It is necessary to subscribe to the event of any query executed through eloquent
On the Internet, I found a solution to listen through eloquent/events illuminate.query
But this option only works for: "illuminate/database": "4.2.6", but for "illuminate/database": "5.3 "doesn't work.
Is there a generic illuminate.query event for version 5.3?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2016-11-16
@Neversmille

Maybe it's
sanasol.ws/2016/04/26/eloquent-query-logging-outsi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question