Hi, have you found your solution? I am facing the same problem as you. Would really appreciate any solutions given!
Title: Broadcasting Laravel Events to a Flutter Frontend Using Laravel Echo or Reverb
Hi everyone,
I’m relatively new to Laravel and have been exploring it as a backend framework. I’ve noticed that many tutorials and examples often focus on building monolithic applications where the frontend and backend live in the same repository. However, I’m working on a decoupled setup with Flutter as the frontend and Laravel as the backend.
Recently, I learned about Laravel Reverb for broadcasting events and wanted to know: Is it possible to use Laravel’s event broadcasting to send real-time updates to a Flutter app?
Here’s what I’m trying to achieve:
When I submit a message (e.g., via Postman), it gets saved to the database. In the same controller method where I save the message, I trigger an event to broadcast this message. When monitoring with php artisan queue:work, everything seems to execute fine, but I don’t receive the broadcasted event on my Flutter app. I’ve set up broadcasting using Laravel Echo before (with Pusher and WebSockets), but I’m unsure how this works with a decoupled frontend, specifically Flutter.
How can I ensure that my Flutter app receives these events? Is Reverb a better approach for such scenarios, or should I stick to Laravel Echo? Are there any specific configurations or tools (like WebSocket clients) I should use for this integration? Any guidance, suggestions, or best practices would be greatly appreciated!
Thanks in advance!
Please or to participate in this conversation.