-
-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Action Illuminate\Broadcasting\BroadcastController@authenticate not defined #3021
Comments
Does |
Sorry for the late replay, did not see your response. Yes the controller exists and has an authenticate method.
|
In the |
yes it is and FYI, I am using the broadcast service in the project with websockets |
This is what I have inside the broadcast service
|
Okay! I'm not entirely sure what's causing the issue that you're running into. I would have presumed Statamic would just work out of the box with the broadcasting stuff. Just one more thing: if you temporarily comment out your I'm basing that on the fact that the It might be a good idea to wait for the Statamic Team to come back online after the new year to look into the issue. I'm stuck sadly, I don't know much about broadcasting and my Googling didn't really help at all 😂 |
I actually have tried that, but it did not help. Thanks for your help. I hope to see a response from them soon. |
Just to confirm, when I asked if the class existed, you're definitely checking on the server and not just in your local repository? |
Oh I think it's some combination of the cached bootstrap files. What commands do you run as part of your deployment script? Deleting the files inside |
May be it is because of the cache, because after upgrading to the latest version to get the fix for this. The issue started appearing on local too during running the caching command. the command is |
We have the same problem. We also use Websockets. The problem also only arises after running |
I have the same issue on production, when using php artisan route:cache. |
If you cache your routes, they get loaded after our broadcast service provider. Closes #3021
Fixed for 3.1 |
Bug Description
Integrating Statamic into an existing Laravel project.
Setting up locally (Mac OS), everything works as expected. However, during installation of composer packages on a staging server running (CentOS 7), I start receiving this issue and was not able to complete the setup.
Not sure what statamic has to do with broadcasting. However, After changing the following code inside
Statamic\Providers\BroadcastServiceProvider
, everything started working as expected.Changes to
How to Reproduce
Extra Detail
Environment
Statamic 3.0.33 Pro
Laravel 8.16.1
PHP 7.4.13
Install method (choose one):
The text was updated successfully, but these errors were encountered: