Esempio n. 1
0
 /**
  * Delete a user.
  *
  * @param \CachetHQ\Cachet\Models\User $user
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function deleteUser(User $user)
 {
     $user->delete();
     return Redirect::route('dashboard.team')->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.team.delete.success')));
 }