From dfe1831c232182967d711060a441af741ccf9119 Mon Sep 17 00:00:00 2001 From: JoshuaMicallefYBSU <91457812+JoshuaMicallefYBSU@users.noreply.github.com> Date: Thu, 15 Aug 2024 17:48:29 +1000 Subject: [PATCH] Update RosterController.php --- app/Http/Controllers/Roster/RosterController.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Http/Controllers/Roster/RosterController.php b/app/Http/Controllers/Roster/RosterController.php index 051e95d6..20a3bfaa 100644 --- a/app/Http/Controllers/Roster/RosterController.php +++ b/app/Http/Controllers/Roster/RosterController.php @@ -23,21 +23,21 @@ class RosterController extends Controller public function publicRoster() { // Get CZQO Roster - $czqo_roster = RosterMember::where('certification', '!=', 'not_certified') + $roster = RosterMember::where('certification', '!=', 'not_certified') ->select(['id', 'certification', 'active', 'user_id']) ->with('user:id,fname,lname,rating_short,display_fname,display_cid_only,display_last_name,division_name,division_code') ->get(); // Get EGGX Roster - $shanwick_controllers = ShanwickController::all(); + // $shanwick_controllers = ShanwickController::all(); - // Transform EGGX data to Eloquent-like objects - $eggx_roster = $shanwick_controllers->map(function($controller) { - return $this->transformShanwickControllerToRoster($controller); - }); + // // Transform EGGX data to Eloquent-like objects + // $eggx_roster = $shanwick_controllers->map(function($controller) { + // return $this->transformShanwickControllerToRoster($controller); + // }); - // Combine Data - $roster = $czqo_roster->concat($eggx_roster); + // // Combine Data + // $roster = $czqo_roster->concat($eggx_roster); // return $roster;