laravel打印完整SQL语句
用DB自带的getQueryLog方法直接打印:
//开启QueryLogDB::connection()->enableQueryLog();
AppUser::find(1);
dump(DB::getQueryLog());