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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community