Debug Capsule

  $results = Capsule::select('select * from table');
  var_dump($results);
 
  Capsule::connection()->enableQueryLog();
  $results = Capsule::select('SELECT * FROM test');
  $query = Capsule::getQueryLog();
  print_r($query);