Laravel 临时添加SQL日志 \DB::enableQueryLog(); // some db operations \Log::info('sql', [DB::getQueryLog()]);