public function showByName($name)
    {
        $team = $this->service->findByName($name);

        if (Gate::allows('team-member', [$team, Auth::user()])) {
            return view('team.show')->with('team', $team);
        }

        return back();
    }
public function showByName($name)
    {
        $team = $this->service->findByName($name);

        if (Gate::allows('team-member', [$team, Auth::user()])) {
            return view('team.show')->with('team', $team);
        }

        return back();
    }
public function showByName ( $ name ) { $ team = $ this -> service -> findByName ( $ name ) ; if ( Gate :: allows ( 'team-member' , [ $ team , Auth :: user ( ) ] ) ) { return view ( 'team.show' ) -> with ( 'team' , $ team ) ; } return back ( ) ; }
Display the specified team.

@param  int  $id
@return \Illuminate\Http\Response
Display the specified team .