public function make(array $input, bool $multiple = true): bool
    {
        try {
            $this->validate($input);
        } catch (ValidationException $e) {
            Session::flash('errors', $e->validator->messages());

            return false;
        }

        try {
            ! $multiple && $this->hasNoExistingUser();

            $this->create(
                $this->createUser($input), $input
            );

            // Installation is successful, we should be able to generate
            // success message to notify the user. Installer route will be
            // disabled after this point.
            Messages::add('success', \trans('orchestra/foundation::install.user.created'));

            return true;
        } catch (Exception $e) {
            Messages::add('error', $e->getMessage());
        }

        return false;
    }
public function make(array $input, bool $multiple = true): bool
    {
        try {
            $this->validate($input);
        } catch (ValidationException $e) {
            Session::flash('errors', $e->validator->messages());

            return false;
        }

        try {
            ! $multiple && $this->hasNoExistingUser();

            $this->create(
                $this->createUser($input), $input
            );

            // Installation is successful, we should be able to generate
            // success message to notify the user. Installer route will be
            // disabled after this point.
            Messages::add('success', \trans('orchestra/foundation::install.user.created'));

            return true;
        } catch (Exception $e) {
            Messages::add('error', $e->getMessage());
        }

        return false;
    }
public function make ( array $ input , bool $ multiple = true ) : bool { try { $ this -> validate ( $ input ) ; } catch ( ValidationException $ e ) { Session :: flash ( 'errors' , $ e -> validator -> messages ( ) ) ; return false ; } try { ! $ multiple && $ this -> hasNoExistingUser ( ) ; $ this -> create ( $ this -> createUser ( $ input ) , $ input ) ; // Installation is successful, we should be able to generate // success message to notify the user. Installer route will be // disabled after this point. Messages :: add ( 'success' , \ trans ( 'orchestra/foundation::install.user.created' ) ) ; return true ; } catch ( Exception $ e ) { Messages :: add ( 'error' , $ e -> getMessage ( ) ) ; } return false ; }
Create adminstrator account.

@param  array  $input
@param  bool   $multiple

@return bool
Create adminstrator account .