示例#1
0
 /**
  * @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'));
 }
示例#2
0
 /**
  * @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();
 }