zhaojunlike / laravel-apollo-client
Apollo agent for laravel.
0.0.2
2018-11-14 06:15 UTC
Requires
- illuminate/console: 5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.7.x
- illuminate/support: 5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.7.x
- lackhurt/apollo-client: ^0.1.1
- zhaojunlike/apollo-php-client: ^0.0.1
This package is not auto-updated.
Last update: 2024-11-11 08:43:52 UTC
README
Installation
Install the package via composer
composer require zhaojunlike/laravel-apollo-client
Add serviceProvider
Lackhurt\Apollo\Providers\ApolloServiceProvider::class
Add facade
'Apollo' => Lackhurt\Apollo\Facades\Apollo::class
Publish ServiceProvider
php artisan vendor:publish --provider="Lackhurt\Apollo\Providers\ApolloServiceProvider"
Edit .env
APP_ID=your app id CLUSTER=default APOLLO_NAMESPACES="application, common_ns, others" APOLLO_CONFIG_SERVER=http://apollometa:8090
Start agent as a daemon
php artisan apollo.start-agent
License
laravel-apollo is free software distributed under the terms of the MIT license.