laravel 獲取某個查詢的查詢SQL語句

DB::connection()->enableQueryLog();#開啓執行日誌 $count = DB::table('test')     //執行查詢 ->whereNull('deleted_at') ->where('id', '=', 3) ->where('Name', '=', '測試')
相關文章
相關標籤/搜索