×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Bretton Eveleigh
Added: Nov 17, 2016 5:20 AM
Views: 15
  1.         // add use:
  2.         use DB;
  3.        
  4.         // wrap the model 'query' in:
  5.        
  6.         DB::enableQueryLog();
  7.        
  8.         // query here...
  9.        
  10.         dd( DB::getQueryLog() );