public function index($teamId)
    {
        $team = Team::findOrFail($teamId);
        $this->authorize('view', $team);
        return $this->respondRelatedAddresses($teamId, 'address');
    }
public function index($teamId)
    {
        $team = Team::findOrFail($teamId);
        $this->authorize('view', $team);
        return $this->respondRelatedAddresses($teamId, 'address');
    }
public function index ( $ teamId ) { $ team = Team :: findOrFail ( $ teamId ) ; $ this -> authorize ( 'view' , $ team ) ; return $ this -> respondRelatedAddresses ( $ teamId , 'address' ) ; }
Produce a list of Addresss related to a selected Team

@param $teamId string UUID of Team
@return \Illuminate\Http\Response List of Addresss
Produce a list of Addresss related to a selected Team