Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

myregistration's avatar

Error listing channels when using Laravel 11 with Sail + Revert + Broadcasting

I'm using Laravel 11.1.1 with Sail and broadcasting via Reverb. I've done php artisan install:broadcasting and although I have channels definied in my routes/channels.php file, when I use command php artisan channel:list I get the following error

ERROR  Your application doesn't have any private broadcasting channels.

So this makes me wonder if channels.php is even getting included. Laravel 11 doesn't require us to enable a broadcast service provider or include broadcast routes anymore. Any idea why this is happening? Is it a bug? Thanks

0 likes
1 reply
LaryAI's avatar
Level 58

It sounds like you're encountering an issue where Laravel isn't recognizing your defined broadcasting channels. Here are a few steps you can take to troubleshoot and potentially resolve this issue:

  1. Verify Channel Definitions: Ensure that your routes/channels.php file is correctly defining channels. Here's an example of how you might define a private channel:

    Broadcast::channel('user.{id}', function ($user, $id) {
        return (int) $user->id === (int) $id;
    });
    
  2. Clear Cache: Sometimes, Laravel might be serving cached routes which could cause it not to recognize new changes. You can clear the route cache by running:

    php artisan route:clear
    

    Additionally, clear your config cache:

    php artisan config:clear
    
  3. Check Configuration: Ensure that your broadcasting configuration in config/broadcasting.php is set up correctly and that it matches the driver you are intending to use with Reverb.

  4. Environment Configuration: Check your .env file for any misconfiguration that might affect broadcasting. Ensure that BROADCAST_DRIVER is set to the correct value that you are using (like pusher, redis, log, etc.).

  5. Permissions and Path: Ensure that the routes/channels.php file has the correct permissions and is located in the right directory (routes/channels.php).

  6. Debugging Further: If the above steps don't resolve the issue, you might want to debug by manually including the channels.php file in your RouteServiceProvider or even directly in web.php temporarily to see if it's a loading issue:

    require base_path('routes/channels.php');
    
  7. Consult Documentation: Since Laravel 11 is relatively new, ensure that there haven't been any changes to how broadcasting channels should be defined or loaded. Check the official Laravel documentation for any updates or changes.

  8. Check for Updates or Bugs: Since you are using a new version of Laravel, there might be bugs or updates that address this issue. Check the Laravel GitHub repository for any issues related to broadcasting or updates that might have fixed this problem.

If after trying these steps the issue persists, it might be beneficial to seek further assistance by providing more details on the Laravel GitHub issues page or on forums like Laracasts, as it might be a more complex or version-specific issue.

Please or to participate in this conversation.