public function create()
    {
        if ($this->status()) {
            $this->success('Vault already initialized');
            return false;
        }

        $response = $this->Vault->sys()->init([
            'secret_shares' => 5,
            'secret_threshold' => 3
        ])->json();

        $file = env('HOME') . '/.bownty_vault_keys';
        file_put_contents($file, json_encode($response, JSON_PRETTY_PRINT));

        $this->success('Vault is initialized, keys have been written to ' . $file);
        $this->success('Please run "unseal" to start working with Vault');
        return true;
    }
public function create()
    {
        if ($this->status()) {
            $this->success('Vault already initialized');
            return false;
        }

        $response = $this->Vault->sys()->init([
            'secret_shares' => 5,
            'secret_threshold' => 3
        ])->json();

        $file = env('HOME') . '/.bownty_vault_keys';
        file_put_contents($file, json_encode($response, JSON_PRETTY_PRINT));

        $this->success('Vault is initialized, keys have been written to ' . $file);
        $this->success('Please run "unseal" to start working with Vault');
        return true;
    }
public function create ( ) { if ( $ this -> status ( ) ) { $ this -> success ( 'Vault already initialized' ) ; return false ; } $ response = $ this -> Vault -> sys ( ) -> init ( [ 'secret_shares' => 5 , 'secret_threshold' => 3 ] ) -> json ( ) ; $ file = env ( 'HOME' ) . '/.bownty_vault_keys' ; file_put_contents ( $ file , json_encode ( $ response , JSON_PRETTY_PRINT ) ) ; $ this -> success ( 'Vault is initialized, keys have been written to ' . $ file ) ; $ this -> success ( 'Please run "unseal" to start working with Vault' ) ; return true ; }
Create a new Vault instance

- initialize vault and save the response in ~/.bownty_vault_keys

@see https://www.vaultproject.io/docs/http/sys-init.html
@return void
Create a new Vault instance