Exemplo n.º 1
0
 public function listcons()
 {
     $Consumptions = Consumptions::all();
     return View::make('consumptions.listcons', compact('Consumptions'));
 }
Exemplo n.º 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy()
 {
     $id = $_GET['id'];
     $Consumptions = Consumptions::find($id);
     $Consumptions->delete();
     return Redirect::back();
     ////redirect
     //     Session::flash('message','successfully deleted');
     //        $Consumptions = Consumptions::all();
     //
     //        return View::make('consumptions.listcons', compact('Consumptions'));
 }