lacee1986
11/25/2016 - 10:47 AM

Debugging SQL query

Debugging SQL query

use DB;

/* Enable logging */
DB::connection()->enableQueryLog();

/* Show last query */
dd(DB::getQueryLog());