queries() public static method

Get full query log
public static queries ( ) : array
return array Queries that have been executed and all data that has been passed with them
Example #1
0
 /**
  * Debug Spot queries by dumping query log
  */
 public function debugQueryLog()
 {
     if ($this->kernel->config('app.debug')) {
         // Executed queries
         echo "<hr />";
         echo "<h1>Executed Queries (" . \Spot\Log::queryCount() . ")</h1>";
         echo "<pre>";
         print_r(\Spot\Log::queries());
         echo "</pre>";
     }
 }