How To Use Laravel WebSockets And Laravel Echo With Vue 3 App. | S14
HTML-код
- Опубликовано: 30 сен 2024
- Laravel WebSockets server and Laravel Echo with a Vue 3 app for real-time application using Laravel 9.
Article: ahmedshaltout....
Website: ahmedshaltout....
It is not compatible for Laravel 9 and above, the repo is no longer up to date and support is available.
Thanks for the private channel example!
i have problem for install pusher
Hello, what's the problem?
@@ahmed.shaltout Problem 1
pusher/pusher-php-server is locked to version v3.4.1 and an update of this package was not requested.
pusher/pusher-php-server v3.4.1 requires php >=5.4 your php version (7.4.15) does not satisfy that requirement.
@@ayoubsabri1718 I use php 8.1
@@ahmed.shaltout if u have teamview help me
Thx, you saved my day
you're welcome, I'm glad that I could help
Hello, thank you for your sharing. I followed every step but I get the following error in vue2. 4001,”App key local not in this cluster. Did you forget to specify the cluster?”
Im using vue3, try to add the cluster, i added PUSHER_APP_CLUSTER in .env file
Great video. But sir can you make a video for the development server setup.
Yes I will
help me dude i got some problem when i installed composer require beyondcode/laravel-websockets it say Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Hello. Did it show any error
Thank you for sharing. This content really helps me a lot.
You are welcome, thanks
for the new guys facing problems make sure to use pusher-php-server:7.0.2 instead of 7.2
Yes, version 7.2 does not work and i downgraded to 7.0.2 and got to work without changing any configuration.
But if you want to use version 7.2
make sure use "beyondcode/laravel-websockets": "^1.9",
can we listen for this channels in app ?
Yes
@@ahmed.shaltout i am trying to listen for events in react native app, but i could not achieve it
Thanks for step by step and detailed explanation! This video deserves more views.
Glad it was helpful! thank you