Skip to content
Snippets Groups Projects
Commit d8355996 authored by FRANTZEN Rejane's avatar FRANTZEN Rejane
Browse files

merge

parents 9c3e1c3e 009e759b
No related branches found
No related tags found
No related merge requests found
...@@ -13,8 +13,17 @@ $db->bootEloquent(); ...@@ -13,8 +13,17 @@ $db->bootEloquent();
$db->connection()->enableQueryLog(); $db->connection()->enableQueryLog();
function show($log){ function show($log){
<<<<<<< HEAD
foreach($log as $l) foreach($log as $l)
echo implode(",", $l); echo implode(",", $l);
=======
echo "Logs: </br>";
$length=count($log);
for($i=0; $i<$length; $i++){
$l= $log[$i];
echo "temps d'exec: ".$l["time"]."</br>Query: ".$l["query"]."</br>";
}
>>>>>>> 009e759b38e5103056185d74fe95bbabeefa3a02
} }
/*print "----------------------PARTIE 1----------------------<br>"; /*print "----------------------PARTIE 1----------------------<br>";
...@@ -78,5 +87,8 @@ foreach($companySony as $cS) { ...@@ -78,5 +87,8 @@ foreach($companySony as $cS) {
print "Name : ".$cS->name.'</br>'; print "Name : ".$cS->name.'</br>';
} }
$queries = $db::getQueryLog(); $queries = $db::getQueryLog();
//dd($queries);
show($queries); show($queries);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment