version 0.1.1
composer require santutu/laravel-echo-client
Copy the package config to your local config with the publish command:
php artisan vendor:publish --provider="Santutu\LaravelEchoClient\ServiceProvider"
Setting .env file
LARAVEL_ECHO_CLIENT_SERVER_HOST=your echo server host. default is laravel-echo-server(with laradock).
LARAVEL_ECHO_CLIENT_SERVER_PORT=your echo server port. default is 6001.
LARAVEL_ECHO_CLIENT_APP_ID=your echo server app id
LARAVEL_ECHO_CLIENT_AUTH_KEY=yout echo server auth key
Get Host, Port, AppId, AuthKey in laravel-echo-server.json
Check https://github.com/tlaverdure/laravel-echo-server please.
EchoClient::getAppStatus();
EchoClient::getChannels();
EchoClient::getChannel('channalName');
EchoClient::getUsers('channalName');