Support the ongoing development of Laravel.io →
Laravel Requests Configuration

Hello together,

I currenty try to implement broadcasting with Pusher and Echo. It is working with public channels, so the basic setup is okay but when I try to advance to private channels I run into the following problem:

I uncommented the BroadcastServiceProvider in config/app.php to enable it which then should add the routes (/broadcasting/auth) needed, but then I get the Exception below when I try to check the routes using php artisan route:list

[ReflectionException]
Class SpaceDB\Http\Controllers\Illuminate\Broadcasting\BroadcastController does not exist 

Why is it using my \App namespace for this? I searched my project directory and the BroadcastController is located in the Illuminate\Broadcasting namespace. I also tried changing the namespace in BroadcastController to namespace App\Http\Controllers\Illuminate\Broadcasting;, which is the one it is looking for, but that also does not work.

What am I missing here? The documentation is really unaccurate at this point and I have no Idea what to do anymore.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Denis Ulmer matariki Joined 8 Apr 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.