Update BroadcastServiceProvider to include API versioning and enhanced middleware configuration. Revise Nginx configuration comments for clarity on broadcasting and websocket proxy setup.
This commit is contained in:
1 parent
550ffea5c0
commit
57dd8ee378
2 files changed
+18
-5
No files matched your search
@@ -17,6 +17,11 @@ public function boot(): void
|
||||
{
|
||||
Broadcast::routes(['middleware' => ['auth:sanctum']]);
|
||||
|
||||
Broadcast::routes([
|
||||
'prefix' => 'api/v1',
|
||||
'middleware' => ['api', 'api_token', 'auth:sanctum'],
|
||||
]);
|
||||
|
||||
Broadcast::routes([
|
||||
'prefix' => 'panel',
|
||||
'middleware' => ['web', NovaAuthenticate::class, NovaAuthorize::class, EnsureChatOperator::class],
|
||||
|
||||
Reference in new issue
Block a user