コード例 #1
0
 public function addplayer($id)
 {
     setlocale(LC_MONETARY, "en_US");
     $user = Auth::user();
     $club = $user->Clubs()->FirstOrFail();
     $followers = new Follower();
     $title = 'League Together - ' . $club->name . ' Teams';
     $team = Team::where("id", "=", $id)->where("club_id", '=', $club->id)->FirstOrFail();
     $plan = $club->plans()->lists('name', 'id');
     return View::make('pages.user.club.team.addplayer')->with('page_title', $title)->with('team', $team)->with('followers', $followers->getPlayers())->withUser($user);
 }