src/Processor/User.php
public function store(UserCreatorListener $listener, array $input)
    {

        $user           = Foundation::make('antares.user');
        $user->status   = Eloquent::UNVERIFIED;
        $user->password = $input['password'];

        $form = $this->presenter->form($user);
        if (!$form->isValid()) {
            return $listener->createUserFailedValidation($form->getMessageBag());
        }

        try {
            $this->saving($user, $input, 'create');
        } catch (Exception $e) {
            Log::emergency($e);
            return $listener->createUserFailed(['error' => $e->getMessage()]);
        }

        return $listener->userCreated();
    }
public function store(UserCreatorListener $listener, array $input)
    {

        $user           = Foundation::make('antares.user');
        $user->status   = Eloquent::UNVERIFIED;
        $user->password = $input['password'];

        $form = $this->presenter->form($user);
        if (!$form->isValid()) {
            return $listener->createUserFailedValidation($form->getMessageBag());
        }

        try {
            $this->saving($user, $input, 'create');
        } catch (Exception $e) {
            Log::emergency($e);
            return $listener->createUserFailed(['error' => $e->getMessage()]);
        }

        return $listener->userCreated();
    }
Store a user.

@param  \Antares\Contracts\Foundation\Listener\Account\UserCreator  $listener
@param  array   $input

@return mixed