1 2 3 4 5 6 7 8
<?php \DB::connection()->enableQueryLog(); // ... your code //output query log var_dump(\DB::getQueryLog()); ?>
1 2 3 4
<?php \Event::listen('Illuminate\Database\Events\QueryExecuted', function($query) { var_dump($query); });