Lae/app/Providers/BroadcastServiceProvider.php

22 lines
424 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\Facades\Broadcast;
use Illuminate\Support\ServiceProvider;
class BroadcastServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Broadcast::routes([
'middleware' => ['auth:sanctum', 'auth'],
]);
require base_path('routes/channels.php');
}
}