public function show($id)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $team = Team::with('user')
            ->findOrFail($id);
        $this->authorize('view', $team);
        return fractal($team, new TeamTransformer())
            ->withResourceName('team')
            ->respond();
    }