Skip to content
Snippets Groups Projects
Commit eb184387 authored by SASSU Thomas's avatar SASSU Thomas
Browse files

Debute par mario >3 characters

parent f21eb293
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,7 @@ class ControleurScript ...@@ -108,7 +108,7 @@ class ControleurScript
echo "<p>nom : $game->name</p>"; echo "<p>nom : $game->name</p>";
} }
$q = Game::where('name','like',"%Mario%")->get(); $q = Game::where('name','like',"Mario%")->get();
echo ("<p>---------------------------------------------<br>" . echo ("<p>---------------------------------------------<br>" .
"<p>le rating initial (indiquer le rating board) des jeux dont le nom contient Mario<br>" . "<p>le rating initial (indiquer le rating board) des jeux dont le nom contient Mario<br>" .
"<p>---------------------------------------------<br>"); "<p>---------------------------------------------<br>");
...@@ -118,6 +118,14 @@ class ControleurScript ...@@ -118,6 +118,14 @@ class ControleurScript
foreach ($list as $rate) foreach ($list as $rate)
echo "<p>id rating_board : $rate->rating_board_id, name : {$rate->rating_board()->first()->name}</p>"; echo "<p>id rating_board : $rate->rating_board_id, name : {$rate->rating_board()->first()->name}</p>";
} }
echo ("<p>---------------------------------------------<br>" .
"<p>les jeux dont le nom débute par Mario et ayant plus de 3 personnages<br>" .
"<p>---------------------------------------------<br>");
foreach ($q as $game) {
$list = $game->characters()->get();
if(count($list)>3) echo "<p>$game->name</p>";
}
} }
private function nameDeckByGame($id){ private function nameDeckByGame($id){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment