Пример #1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @param StoreAddressPostRequest $request
  * @return Response
  */
 public function update($id, StoreAddressPostRequest $request)
 {
     $address = Address::findOrFail($id);
     $input = $request->all();
     $address->fill($input)->save();
     Session::flash('flash_message', 'Address successfully Updated!');
     return redirect()->action('OwnerController@index');
 }
Пример #2
0
 /**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @param StoreAddressPostRequest $request
  * @return Response
  */
 public function update(Address $address, StoreAddressPostRequest $request)
 {
     $input = $request->all();
     $address->fill($input)->save();
     Session::flash('flash_message', 'Address successfully Updated!');
     return redirect()->back();
 }