
http://stackoverflow.com/questions/14536165/get-the-query-executed-in-laravel-3-4
public static function q($all = true) { $queries = DB::getQueryLog(); if ($all == false) { $last_query = end($queries); return $last_query; } return $queries; } 没用 空array,来点方便的方法吧!
1 dawn009 2014-08-09 05:07:28 +08:00 我用DB自带的Log |
2 WildCat 2014-08-09 08:43:27 +08:00 via iPhone Laravel debug bar |
3 WildCat 2014-08-09 10:16:26 +08:00 |