0
我有一個模型類查詢laravel轉儲型號查詢
我的代碼
$jobs = \App\Job::orderBy('created_at', 'DESC')->offset($start)->limit($length)->get(); //supply start and length of the table data
我試圖 DB :: enableQueryLog(); dd(DB :: getQueryLog());
卻是深藏不露
可能重複[Laravel查詢到sql查詢](https://stackoverflow.com/questions/44497115/laravel-query-to-sql-query) –
結帳這篇文章:https://stackoverflow.com/questions/27753868 /如何到獲得最查詢執行的功能於laravel -5- dbgetquerylog返流空,ARR –