Use the enableQueryLog method: Use the enableQueryLog method:DB::connection()->enableQueryLog();
We can get an array of the executed queries by using the getQueryLog method:
$queries = DB::getQueryLog();
No comments:
Post a Comment