You're welcome! It sounds like the chat component might not be properly registered or included. Make sure you've imported the component correctly. Also, check for any errors in the browser console.
when i use sendTypingEvents then broadcasting/auth is forbidden 403 showing.... why this is happened I couldn't find any solution of this please give me a solution
The 403 Forbidden error usually occurs when the user is not authenticated or authorized to join the private channel. To fix this, make sure that: 1. User is Authenticated: Ensure that the user is logged in before trying to join the private channel. 2. Channel Authorization: Check your `BroadcastServiceProvider` or the corresponding channel class to ensure proper authorization logic. For example: ```php Broadcast::channel('chat.{id}', function ($user, $id) { return (int) $user->id === (int) $id; }); ``` 3. Correct Middleware: Verify that you are using the correct middleware for broadcasting, such as `auth:api` or `auth:web`, depending on your setup. 4. CSRF Token: Ensure that the CSRF token is being passed correctly with your requests. I recommend watching the tutorial again to see how it's implemented step by step. Let me know if you need further assistance!
Hi, please show all online user list, i'm face the issue to handel the get all online user without refresh. i get online user when i refresh the page. Please help
For that, you should watch this playlist: ruclips.net/p/PL1TrjkMQ8UbWfFUCimQ50CdrR_J7QvEFW It is a real-time chat using Laravel WebSocket, and the logic is the same with Laravel Echo.
No, Laravel Reverb does not support Laravel 9. You should upgrade to Laravel 11 Or you can use Laravel WebSockets. I have already created a detailed video on this. Here is the playlist URL: ruclips.net/p/PL1TrjkMQ8UbWfFUCimQ50CdrR_J7QvEFW
I haven't planned a separate video for React because the same logic can be applied in React.js as well. If you have any specific questions about how to implement it in React, feel free to ask!
WebSocket is two-way communication over a single TCP connection; I used AJAX to store messages in the database and WebSockets for real-time communication.
Don't get left behind! Try Spec Coder: Supercharge Your Coding with AI!
*50% off!* Use code *YT-FAMILY* (limited time offer).
👉 qirolab.com/spec-coder
make some videos on basic concept of websocket, echo, pusher, broadcasting etc.
Noted
Is it possible to use separate projects for the frontend and backend?
How can we receive events in the backend from frontend, we can use whisper() function?
you are awesome but on this video you are doing code is too fast. I'm not comfortable with this speed.....next time please slowly do it
Thanks for your feedback! I’ll slow down the coding in future videos to make it easier to follow. I appreciate your support!
Thank you for this tutorial
I was trying to run the code from Git Hub, but the chat-component is not showing in chat.blade
what am I missing, please?
You're welcome!
It sounds like the chat component might not be properly registered or included. Make sure you've imported the component correctly. Also, check for any errors in the browser console.
@@QiroLab in console : Uncaught You must pass your app key when you instantiate Pusher. 1:1
when i use sendTypingEvents then broadcasting/auth is forbidden 403 showing.... why this is happened I couldn't find any solution of this please give me a solution
The 403 Forbidden error usually occurs when the user is not authenticated or authorized to join the private channel. To fix this, make sure that:
1. User is Authenticated: Ensure that the user is logged in before trying to join the private channel.
2. Channel Authorization: Check your `BroadcastServiceProvider` or the corresponding channel class to ensure proper authorization logic. For example:
```php
Broadcast::channel('chat.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});
```
3. Correct Middleware: Verify that you are using the correct middleware for broadcasting, such as `auth:api` or `auth:web`, depending on your setup.
4. CSRF Token: Ensure that the CSRF token is being passed correctly with your requests.
I recommend watching the tutorial again to see how it's implemented step by step. Let me know if you need further assistance!
please make the same with InertiaJs
Implementation with Inertia.js is the same, just follow 38:26 in your component.
Bravo !!! But can you increase the resolution ? Because 480p is hard to read ...
I am so sorry; I made a mistake during rendering. It cannot be fixed now.
I am glad you liked this tutorial.
Hi, please show all online user list, i'm face the issue to handel the get all online user without refresh. i get online user when i refresh the page. Please help
For that, you should watch this playlist: ruclips.net/p/PL1TrjkMQ8UbWfFUCimQ50CdrR_J7QvEFW
It is a real-time chat using Laravel WebSocket, and the logic is the same with Laravel Echo.
laravel reverb only for laravel 11 or availabel too in laraval 9?
No, Laravel Reverb does not support Laravel 9.
You should upgrade to Laravel 11
Or you can use Laravel WebSockets.
I have already created a detailed video on this. Here is the playlist URL:
ruclips.net/p/PL1TrjkMQ8UbWfFUCimQ50CdrR_J7QvEFW
well
hello, do you ever plan on making a react version for this?
I haven't planned a separate video for React because the same logic can be applied in React.js as well. If you have any specific questions about how to implement it in React, feel free to ask!
your videos are always very helpful. thanks
So nice of you
shouldnt be sockets ? instead of ajax?
😂😂
WebSocket is two-way communication over a single TCP connection; I used AJAX to store messages in the database and WebSockets for real-time communication.
480p?
Apologies for the low quality of the video. I made a mistake during the rendering process.
@@QiroLab nvm! A great video.
Thanks