标签:
$queries = DB::getQueryLog(); $a = end($queries); $tmp = str_replace(‘?‘, ‘"‘.‘%s‘.‘"‘, $a["query"]); echo vsprintf($tmp, $a[‘bindings‘]); exit;
laravel 输出sql
原文地址:http://www.cnblogs.com/hikarusun/p/4830666.html