Laravel 临时添加SQL日志

\DB::enableQueryLog();

// some db operations

\Log::info('sql', [DB::getQueryLog()]);

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注