public function show($id)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $team = Team::with('user')
            ->findOrFail($id);
        $this->authorize('view', $team);
        return fractal($team, new TeamTransformer())
            ->withResourceName('team')
            ->respond();
    }
public function show($id)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $team = Team::with('user')
            ->findOrFail($id);
        $this->authorize('view', $team);
        return fractal($team, new TeamTransformer())
            ->withResourceName('team')
            ->respond();
    }
public function show ( $ id ) { /** @noinspection PhpUndefinedMethodInspection */ $ team = Team :: with ( 'user' ) -> findOrFail ( $ id ) ; $ this -> authorize ( 'view' , $ team ) ; return fractal ( $ team , new TeamTransformer ( ) ) -> withResourceName ( 'team' ) -> respond ( ) ; }
Fetch details for a Team
@param  $id string UUID of the Team
@return \Illuminate\Http\Response JSON object with Team details
Fetch details for a Team