Ejemplo n.º 1
0
 /**
  * Update the specified resource in storage.
  * @param  int  $id
  * @return Response
  */
 public function update(Netblock $netblock)
 {
     $input = array_except(Input::all(), '_method');
     $input['first_ip'] = ICF::inetPtoi($input['first_ip']);
     $input['last_ip'] = ICF::inetPtoi($input['last_ip']);
     $netblock->update($input);
     return Redirect::route('admin.netblocks.show', $netblock->id)->with('message', 'Netblock has been updated.');
 }
Ejemplo n.º 2
0
 /**
  * Update the specified resource in storage.
  *
  * @param NetblockFormRequest $netblockForm
  * @param Netblock            $netblock
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function update(NetblockFormRequest $netblockForm, Netblock $netblock)
 {
     $netblock->update($netblockForm->all());
     return Redirect::route('admin.netblocks.show', $netblock->id)->with('message', trans('netblocks.msg.updated'));
 }