id === (int) $id; // }); Broadcast::channel('chat', function ($user) { return Auth::check(); });