public function unSuspend($id)
{
try {
// Find the user using the user id
$throttle = $this->sentry->findThrottlerByUserId($id);
// Un-suspend the user
$throttle->unsuspend();
// Fire the 'user un-suspended' event
$this->dispatcher->fire('sentinel.user.unsuspended', ['userId' => $id]);
return new SuccessResponse(trans('Sentinel::users.unsuspended'), ['userId' => $id]);
} catch (UserNotFoundException $e) {
$message = trans('Sentinel::sessions.invalid');
return new ExceptionResponse($message);
}
}