Exemplo n.º 1
0
 /**
  * Deactivates an account
  *
  * @param  array  $data
  * @return \Illuminate\Contracts\Validation\Validator
  */
 public function deactivate()
 {
     users::destroy(Auth::User()->id);
     Auth::logout();
     return redirect('login')->with('message', 'Your account has been deleted successfully!')->with('type', 'success')->with('title', 'Account Deleted');
 }