laravel打印sql

DB::connection()->enableQueryLog();


print_r(DB::getQueryLog());

原文地址:https://www.cnblogs.com/brady-wang/p/10635679.html