Exemplo n.º 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $gasto = Gasto::findOrFail($id);
     $gastos = Gasto::where('taxi_id', $gasto->taxi_id)->where('anio', $gasto->anio)->where('mes', $gasto->mes)->get();
     return view('gastos.edit', compact('gastos'));
 }