2022-09-22 04:18:35 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2022-11-06 11:28:22 +00:00
|
|
|
use Illuminate\Support\Facades\Broadcast;
|
2022-09-22 04:18:35 +00:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class BroadcastServiceProvider extends ServiceProvider
|
|
|
|
{
|
2022-11-06 11:28:22 +00:00
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2023-01-10 12:43:54 +00:00
|
|
|
public function boot(): void
|
2022-09-22 04:18:35 +00:00
|
|
|
{
|
2022-11-07 04:37:59 +00:00
|
|
|
Broadcast::routes([
|
2022-11-21 05:18:38 +00:00
|
|
|
'middleware' => ['auth:sanctum', 'auth'],
|
2022-11-07 04:37:59 +00:00
|
|
|
]);
|
2022-11-06 11:28:22 +00:00
|
|
|
|
2022-09-22 04:18:35 +00:00
|
|
|
require base_path('routes/channels.php');
|
|
|
|
}
|
|
|
|
}
|