/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $liability = Liability::findOrFail($id); $liability->delete(); return redirect()->route('liabilities.index')->with('message', 'Item deleted successfully.'); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $liability = new Liability(); if ($liability->destroy($id)) { return "success"; } }