/**
  * Remove the specified resource from storage.
  *
  * @param  int      $id
  * @return Response
  */
 public function destroy($id)
 {
     if ($this->country->delete($id)) {
         return redirect('country')->with('success', 'Country successfully deleted!');
     }
     return redirect('country')->with('error', 'Error deleting Country !');
 }
 /**
  * latest context pull api.
  *
  * @param  Request $request
  * @return json
  */
 public function index(Request $request)
 {
     $countries = $this->country->all();
     return $this->response->withCollection($countries, new CountryTransformer());
 }