PHP code example of zdk / apollo
1. Go to this page and download the library: Download zdk/apollo 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/ */
zdk / apollo example snippets
'providers' => [
\Sunaloe\ApolloLaravel\ApolloLaravelServiceProvider::class,
],
$app->configure('apollo');
$app->register(\Illuminate\Redis\RedisServiceProvider::class);
$app->register(\Sunaloe\ApolloLaravel\ApolloServiceProvider::class);
php artisan apollo:work
env('apollo:配置名')
\Sunaloe\ApolloLaravel\Facades\Apollo::resetConfig();