public function edit(Request $request, $teamId)
    {
        $user = $request->user();

        $team = $user->teams()->findOrFail($teamId);

        $activeTab = $request->get(
            'tab', Spark::firstTeamSettingsTabKey($team, $user)
        );

        return view('spark::settings.team', compact('team', 'activeTab'));
    }
public function edit(Request $request, $teamId)
    {
        $user = $request->user();

        $team = $user->teams()->findOrFail($teamId);

        $activeTab = $request->get(
            'tab', Spark::firstTeamSettingsTabKey($team, $user)
        );

        return view('spark::settings.team', compact('team', 'activeTab'));
    }
public function edit ( Request $ request , $ teamId ) { $ user = $ request -> user ( ) ; $ team = $ user -> teams ( ) -> findOrFail ( $ teamId ) ; $ activeTab = $ request -> get ( 'tab' , Spark :: firstTeamSettingsTabKey ( $ team , $ user ) ) ; return view ( 'spark::settings.team' , compact ( 'team' , 'activeTab' ) ) ; }
Show the edit screen for a given team.

@param  \Illuminate\Http\Request  $request
@param  int  $teamId
@return \Illuminate\Http\Response
Show the edit screen for a given team .