protected function respondRelatedPhones($phoneableId, $objectType)
    {
        $phones = Phone::where('phoneable_id', $phoneableId)
            ->orderBy('created_at', 'desc')
            ->get();
        return fractal($phones, new PhoneTransformer())
            ->withResourceName("{$objectType}Phone")
            ->respond();
    }
protected function respondRelatedPhones($phoneableId, $objectType)
    {
        $phones = Phone::where('phoneable_id', $phoneableId)
            ->orderBy('created_at', 'desc')
            ->get();
        return fractal($phones, new PhoneTransformer())
            ->withResourceName("{$objectType}Phone")
            ->respond();
    }
protected function respondRelatedPhones ( $ phoneableId , $ objectType ) { $ phones = Phone :: where ( 'phoneable_id' , $ phoneableId ) -> orderBy ( 'created_at' , 'desc' ) -> get ( ) ; return fractal ( $ phones , new PhoneTransformer ( ) ) -> withResourceName ( "{$objectType}Phone" ) -> respond ( ) ; }
Produce a list of Phones related to a selected object

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