new database
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
require_once "../../../bootstrap.php";
|
||||
|
||||
use Backend\Models\Group;
|
||||
|
||||
if (isset($_GET["groupId"])){
|
||||
if (isset($_GET["groupId"])) {
|
||||
$groups = Group::find($_GET["groupId"]);
|
||||
}
|
||||
elseif(isset($_GET["gameJameId"])){
|
||||
$groups = Group::where("game_jam_id",$_GET["gameJameId"])->get();
|
||||
}
|
||||
else{
|
||||
} elseif (isset($_GET["gameJameId"])) {
|
||||
$registrationIds = Registration::where("game_jam_id", $_GET["gameJameId"])->pluck("game_data_id")->toArray();
|
||||
$groups = Group::whereIn("id", $registrationIds)->get();
|
||||
} else {
|
||||
$groups = Group::all();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user