833 B
833 B
| title | order |
|---|---|
| Installation | 2 |
Installation
Laravel WebSockets can be installed via composer:
composer require beyondcode/laravel-websockets
The package will automatically register a service provider.
You need to publish the WebSocket configuration file:
php artisan vendor:publish --provider="BlaxSoftware\LaravelWebSockets\WebSocketsServiceProvider" --tag="config"
Statistics
This package comes with migrations to store statistic information while running your WebSocket server. For more info, check the Debug Dashboard section.
You can publish the migration file using:
php artisan vendor:publish --provider="BlaxSoftware\LaravelWebSockets\WebSocketsServiceProvider" --tag="migrations"
Run the migrations with:
php artisan migrate