/**
  * Update the specified Location in storage.
  *
  * @param  int              $id
  * @param UpdateLocationRequest $request
  *
  * @return Response
  */
 public function update($id, UpdateLocationRequest $request)
 {
     $location = $this->locationRepository->findWithoutFail($id);
     if (empty($location)) {
         Flash::error('Location not found');
         return redirect(route('locations.index'));
     }
     $location = $this->locationRepository->update($request->all(), $id);
     Flash::success('Location updated successfully.');
     return redirect(route('locations.index'));
 }