/** * @param int $id * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function getStandingEdit(int $id) { $standing = StandingsProfile::with('standings')->where('id', $id)->first(); $characters = $this->getAllCharactersWithAffiliations(); $corporations = $this->getAllCorporationsWithAffiliationsAndFilters(); return view('web::tools.standings.edit', compact('standing', 'characters', 'corporations')); }
/** * @param int $profile_id * * @return \Seat\Web\Models\StandingsProfile */ public function standingsProfile(int $profile_id) : StandingsProfile { return StandingsProfile::with('standings')->where('id', $profile_id)->first(); }