Ejemplo n.º 1
0
 /**
  * Delete a customer
  */
 public function delete(Customer $customer)
 {
     logThis('Customer Deleted: ' . $customer->name . ' was deleted.');
     $this->dispatch(new RemoveFromMonitoring($customer));
     $customer->delete();
     $this->dispatch(new RewriteDhcpConfig());
     return $customer;
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  Customer $customer
  * @return \Illuminate\Http\Response
  */
 public function destroy(Customer $customer)
 {
     $customer->delete();
     Session::flash('flash_message', 'Customer deleted successfully!');
     return Redirect::route('customer.index')->with('message', 'Customer deleted.');
 }
Ejemplo n.º 3
0
 public function deactivate(Customer $customer)
 {
     $customer->delete();
     $customer->user->delete();
     return redirect()->back();
 }