改进 broadcast
This commit is contained in:
parent
c15dfba294
commit
95a189a07c
@ -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');
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
|
||||
*/
|
||||
|
||||
'paths' => ['api/*', 'sanctum/csrf-cookie'],
|
||||
'paths' => ['api/*', 'sanctum/csrf-cookie', 'broadcasting/*'],
|
||||
|
||||
'allowed_methods' => ['*'],
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user