kechujian/laravel-apollo

Apollo agent for laravel.

dev-master 2019-01-18 02:38 UTC

This package is not auto-updated.

Last update: 2024-09-21 09:50:38 UTC


README

Installation

Install the package via composer

composer require lackhurt/laravel-apollo

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.