Skip to content

Instantly share code, notes, and snippets.

@sword-jin
Created August 30, 2015 08:40
Show Gist options
  • Save sword-jin/cbc7565641733b916ec7 to your computer and use it in GitHub Desktop.
Save sword-jin/cbc7565641733b916ec7 to your computer and use it in GitHub Desktop.
查看当前sql
DB::enableQueryLog();
App\User::all();
print_r(DB::getQueryLog());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment