DB::connection()->enableQueryLog(); //初始化query记录
$users = UserRepository->findFirst($where); //框架执行的语句
dd(DB::getQueryLog()); //执行结果