/**
  * Update the specified resource in storage.
  *
  * @param \Illuminate\Http\Request $request
  * @param int                      $id
  *
  * @return \Illuminate\Http\Response
  */
 public function update($id, Request $request)
 {
     $this->customer->updateRecord($request, $id);
     $customer = $this->customer->getById($id);
     \Session::flash('flash_message', 'Customer record has been updated');
     return view('customer.show', compact('customer'));
 }
 /**
  * Update the specified resource in storage.
  *
  * @param \Illuminate\Http\Request $request
  * @param int                      $id
  *
  * @return \Illuminate\Http\Response
  */
 public function update($id, Request $request)
 {
     $this->customer->updateRecord($request, $id);
     $customer = $this->customer->getById($id);
     \Session::flash('flash_message', 'Customer record has been updated');
     return redirect()->action('CustomerController@show', [$customer]);
 }