mysql getquerylog_如何在Laravel 5中执行查询? DB :: getQueryLog()返回空数组
Youwillneedtoenablethequerylogbycalling:DB::enableQueryLog();orregisteraneventlistener:DB::listen(function($sql,$bindings,$time){//$sql-select*from`ncv_users`where`ncv_users`.`id`=?limit1//$bindings-[