Exemplo n.º 1
0
 /**
  * Show the form for editing the specified branch.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $allowance = Allowance::find($id);
     return View::make('allowances.edit', compact('allowance'));
 }
 public function applyChange()
 {
     $param = Input::all();
     $allowance = Allowance::find($param['id']);
     $allowance->edit($param);
     return Response::json(array('valid' => TRUE));
 }