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