示例#1
0
 /**
  * Add a member to a team that has previously expressed interest in joining.
  *
  * @param Team   $team
  * @param Member $member
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function addMember(Team $team, Member $member)
 {
     $team->members()->attach($member->id);
     $team->interestedMembers()->detach($member->id);
     return redirect()->back();
 }