Example #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $plan = Plan::find($id);
     $rubros = Rubro::lists('nombre', 'id');
     $periodos = Period::lists('nombre', 'id');
     return view('plan.edit', compact('plan', 'rubros', 'periodos'));
 }