purityselect/app/Providers/BroadcastServiceProvider.php
2024-10-25 01:05:27 +05:00

20 lines
406 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' => ['api', 'auth:patient,agent']]);
require base_path('routes/channels.php');
}
}