/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { if (!$id) { return Redirect::route('discounts.index')->with('error', 'Please provide discount id'); } $discount = Discounts::find($id); if (empty($discount)) { return Redirect::route('discounts.index')->with('error', 'Discount not found'); } Discounts::destroy($id); return Redirect::route('discounts.index')->with('success', 'Discount deleted successfully'); }