Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enzonotario/lighthouse-laravel-websockets
Lighthouse + Laravel Websockets implementation
https://github.com/enzonotario/lighthouse-laravel-websockets
Last synced: about 1 month ago
JSON representation
Lighthouse + Laravel Websockets implementation
- Host: GitHub
- URL: https://github.com/enzonotario/lighthouse-laravel-websockets
- Owner: enzonotario
- Created: 2019-09-08T19:45:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T09:26:43.000Z (almost 2 years ago)
- Last Synced: 2024-04-23T23:13:36.842Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 5.27 MB
- Stars: 15
- Watchers: 3
- Forks: 5
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lighthouse - LaravelWebsockets integration example
1. Run `composer install`
2. Edit your `.env` and set variables like:
```
PUSHER_APP_ID=test
PUSHER_APP_KEY=c6f11bf7ef7a4a283091
PUSHER_APP_SECRET=test
PUSHER_APP_CLUSTER=mt1MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"LIGHTHOUSE_CACHE_ENABLE=false
LIGHTHOUSE_QUEUE_BROADCASTS=false
LIGHTHOUSE_SUBSCRIPTION_STORAGE=file```
3. Run `php artisan serve` and `php artisan websockets:serve`
4. Try it on http://localhost:8000