Closed Ali-Wassouf closed 3 years ago
I'm trying to log queries. Every query. I'm using this code for example. public function index() { \DB::connection()->enableQueryLog();
$user = new UserNeo(); $user->create(['name' => 'tahseen', 'email' => 'ali.wassouf']); $queries = \DB::getQueryLog(); $data = ['user' => $user, 'query' => $queries]; return $data; }
the create query in the response is empty.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm trying to log queries. Every query. I'm using this code for example. public function index() { \DB::connection()->enableQueryLog();
the create query in the response is empty.