protected function configureUser()
    {
        if (!$this->confirm('Do you want to create an admin user?')) {
            return;
        }

        // We need to refresh the config to get access to the newly connected database.
        $this->getFreshConfiguration();

        // Now we need to install the application.
        // $this->call('cachet:install');

        $user = [
            'username' => $this->ask('Please enter your username'),
            'email'    => $this->ask('Please enter your email'),
            'password' => $this->secret('Please enter your password'),
            'level'    => User::LEVEL_ADMIN,
        ];

        User::create($user);
    }
protected function configureUser()
    {
        if (!$this->confirm('Do you want to create an admin user?')) {
            return;
        }

        // We need to refresh the config to get access to the newly connected database.
        $this->getFreshConfiguration();

        // Now we need to install the application.
        // $this->call('cachet:install');

        $user = [
            'username' => $this->ask('Please enter your username'),
            'email'    => $this->ask('Please enter your email'),
            'password' => $this->secret('Please enter your password'),
            'level'    => User::LEVEL_ADMIN,
        ];

        User::create($user);
    }
protected function configureUser ( ) { if ( ! $ this -> confirm ( 'Do you want to create an admin user?' ) ) { return ; } // We need to refresh the config to get access to the newly connected database. $ this -> getFreshConfiguration ( ) ; // Now we need to install the application. // $this->call('cachet:install'); $ user = [ 'username' => $ this -> ask ( 'Please enter your username' ) , 'email' => $ this -> ask ( 'Please enter your email' ) , 'password' => $ this -> secret ( 'Please enter your password' ) , 'level' => User :: LEVEL_ADMIN , ] ; User :: create ( $ user ) ; }
Configure the first user.

@return void
Configure the first user .