Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
633 stars 197 forks source link

Query logging #259

Closed Ali-Wassouf closed 3 years ago

Ali-Wassouf commented 6 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.

stale[bot] commented 4 years ago

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.