public function destroy($id)
    {
        $phone = Phone::findOrFail($id);
        $this->authorize('manage', $phone);
        $phone->delete();
        return fractal($id, new DeletedTransformer())
            ->withResourceName('deletedPhone')
            ->respond();
    }
public function destroy($id)
    {
        $phone = Phone::findOrFail($id);
        $this->authorize('manage', $phone);
        $phone->delete();
        return fractal($id, new DeletedTransformer())
            ->withResourceName('deletedPhone')
            ->respond();
    }
public function destroy ( $ id ) { $ phone = Phone :: findOrFail ( $ id ) ; $ this -> authorize ( 'manage' , $ phone ) ; $ phone -> delete ( ) ; return fractal ( $ id , new DeletedTransformer ( ) ) -> withResourceName ( 'deletedPhone' ) -> respond ( ) ; }
Delete a Phone object

@param string $id UUID of the Phone
@return \Illuminate\Http\Response JSON object with status message
Delete a Phone object