/** * Update the specified resource in storage. * * @param int $id * @param CountryRequest $request * @return Response */ public function update($id, CountryRequest $request) { $country = $this->country->find($id); if (is_null($country)) { return redirect()->route('country.index')->with('error', 'Country not found.'); } if ($this->country->update($id, $request->all())) { return redirect('country')->with('success', 'Country successfully updated!'); } return redirect('country')->with('error', 'Problem updating Country!'); }