class BroadcastServiceProvider extends ServiceProvider
{
public function boot()
{
Broadcast::routes();
require base_path('routes/channels.php');
}
}
Какая польза Broadcast::routes()
, когда require base_path('routes/channels.php')
аутентифицирует пользователя с этим кодом return (int) $user->user_id === (int) $userId;
в routes/channels.php
?