/** * This will clear out all the interested members from the team. * * @param Team $team * * @return \Illuminate\Http\RedirectResponse */ public function removeInterestedMembers(Team $team) { $team->interestedMembers()->detach(); return redirect()->back(); }