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