vemcogroup / nova-websockets
A Laravel Nova tool to integrate websockets into Nova.
Installs: 2 168
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 3
Forks: 6
Open Issues: 0
Requires
- php: >=7.1.0
- beyondcode/laravel-websockets: ^1.0
- laravel/nova: *
This package is auto-updated.
Last update: 2024-11-05 15:01:22 UTC
README
This tool gives the possibiliy to create apps for Laravel Websockets and see analytics and debug.
Installation
You can install the nova tool in to a Laravel app that uses Nova via composer:
composer require vemcogroup/nova-websockets
This tool uses Laravel Websockets so you have to go through the Installation section to set it up.
Remember that Laravel Websockets is required through this tool, so no need for composer require
.
Next up, you must register the tool with Nova. This is typically done in the tools
method of the NovaServiceProvider
.
// in app/Providers/NovaServiceProvider.php // ... public function tools() { return [ // ... new \Vemcogroup\Websockets\Websockets, ]; }
Next, run migration to add the new app table.
php artisan migrate
Usage
You can now use the tool via the new menu item called "Websockets"
If you want websockets to use the apps you create via this tool, change the app_provider
in config\websockets.php
to use the tools SocketProvider
'app_provider' => \Vemcogroup\Websockets\SocketProvider::class,
To use the Analytics/Debug menu item to analyse your websocket connections you have to change path
on config\websockets.php
to use the same path
'path' => 'sockets',