改进 broadcast
This commit is contained in:
parent
c15dfba294
commit
95a189a07c
@ -15,8 +15,7 @@ class BroadcastServiceProvider extends ServiceProvider
|
|||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
Broadcast::routes([
|
Broadcast::routes([
|
||||||
'middleware' => ['auth:sanctum'],
|
'middleware' => ['auth:sanctum', 'auth'],
|
||||||
'prefix' => 'api',
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
require base_path('routes/channels.php');
|
require base_path('routes/channels.php');
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'paths' => ['api/*', 'sanctum/csrf-cookie'],
|
'paths' => ['api/*', 'sanctum/csrf-cookie', 'broadcasting/*'],
|
||||||
|
|
||||||
'allowed_methods' => ['*'],
|
'allowed_methods' => ['*'],
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user