/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $id = (int) $id; Expenditure::destroy($id); return redirect('dashboard')->with('success', trans('flash.expenditure_destroyed')); }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { // $plannedExpense = PlannedExpense::create($request->all()); return Response::json($plannedExpense, 200); }