Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

eloquent get query log

 DB::connection()->enableQueryLog(); //enable query log
 $data = $order->all(); //query execute
 $queries = DB::getQueryLog(); //get query
 return dd($queries); //show query
Source by artisansweb.net #
 
PREVIOUS NEXT
Tagged: #eloquent #query #log
ADD COMMENT
Topic
Name
2+2 =