1DB::enableQueryLog();
2$users = User::select("*")->get();
3$quries = DB::getQueryLog();
4dd($quries);
5DB::table('users')->toSql();
6dd($query);
1$query = str_replace(array('?'), array('\'%s\''), $builder->toSql());
2$query = vsprintf($query, $builder->getBindings());
3dump($query);