Skip to content

整合 laravel apollo,迭代laravel版本到5.7支持

Notifications You must be signed in to change notification settings

gtsigner/laravel-apollo-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Apollo integration.

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.

About

整合 laravel apollo,迭代laravel版本到5.7支持

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages