Sentinel\Repositories\User\SentryUserRepository::unSuspend PHP Метод

unSuspend() публичный Метод

Remove a users' suspension.
public unSuspend ( $id ) : array
$id
Результат array [type] [description]
    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);
        }
    }