Commit eb184387 authored by SASSU Thomas's avatar SASSU Thomas
Browse files

Debute par mario >3 characters

parent f21eb293
......@@ -108,7 +108,7 @@ class ControleurScript
echo "<p>nom : $game->name</p>";
}
$q = Game::where('name','like',"%Mario%")->get();
$q = Game::where('name','like',"Mario%")->get();
echo ("<p>---------------------------------------------<br>" .
"<p>le rating initial (indiquer le rating board) des jeux dont le nom contient Mario<br>" .
"<p>---------------------------------------------<br>");
......@@ -118,6 +118,14 @@ class ControleurScript
foreach ($list as $rate)
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){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment