改进 broadcast

This commit is contained in:
iVampireSP.com 2022-11-21 13:18:38 +08:00
parent c15dfba294
commit 95a189a07c
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 2 additions and 3 deletions

View File

@ -15,8 +15,7 @@ class BroadcastServiceProvider extends ServiceProvider
public function boot()
{
Broadcast::routes([
'middleware' => ['auth:sanctum'],
'prefix' => 'api',
'middleware' => ['auth:sanctum', 'auth'],
]);
require base_path('routes/channels.php');

View File

@ -15,7 +15,7 @@
|
*/
'paths' => ['api/*', 'sanctum/csrf-cookie'],
'paths' => ['api/*', 'sanctum/csrf-cookie', 'broadcasting/*'],
'allowed_methods' => ['*'],