protected function respondRelatedAddresses($addressableId, $objectType)
    {
        $addresses = Address::where('addressable_id', $addressableId)
            ->orderBy('created_at', 'desc')
            ->get();
        return fractal($addresses, new AddressTransformer())
            ->withResourceName("{$objectType}Address")
            ->respond();
    }
protected function respondRelatedAddresses($addressableId, $objectType)
    {
        $addresses = Address::where('addressable_id', $addressableId)
            ->orderBy('created_at', 'desc')
            ->get();
        return fractal($addresses, new AddressTransformer())
            ->withResourceName("{$objectType}Address")
            ->respond();
    }
protected function respondRelatedAddresses ( $ addressableId , $ objectType ) { $ addresses = Address :: where ( 'addressable_id' , $ addressableId ) -> orderBy ( 'created_at' , 'desc' ) -> get ( ) ; return fractal ( $ addresses , new AddressTransformer ( ) ) -> withResourceName ( "{$objectType}Address" ) -> respond ( ) ; }
Produce a list of Addresses related to a selected object

@param $id string UUID of Job
@return \Illuminate\Http\Response List of Addresses
Produce a list of Addresses related to a selected object