PHP code example of yaangvu / laravel-consul

1. Go to this page and download the library: Download yaangvu/laravel-consul library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yaangvu / laravel-consul example snippets


 public function register()
    {
        $this->app->register(\YaangVu\Consul\ConsulProvider::class);
    }

'keys'   => [
        // 'foo',
        // 'bar'
    ],

php artisan vendor:publish --provider="YaangVu\Consul\ConsulProvider"
 shell
cp vendor/yaangvu/laravel-consul/src/consul.php config/consul.php
shell
php artisan yaangvu:consul