public function listcons() { $Consumptions = Consumptions::all(); return View::make('consumptions.listcons', compact('Consumptions')); }
/** * 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')); }