We create free tutorials and open source tools for Laravel and Javascript developers to make it easier to build products and apps quickly.
Explore the collection of web development tutorials, latest news, and tips on various technologies like PHP, Laravel, WordPress, VueJs, ReactJs, NodeJs, etc.
🌟 Support my work: 1. On BuyMeACoffee: www.buymeacoffee.com/qirolab 2. On Patreon: www.patreon.com/qirolab
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!
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.
*Special Offer*: Enjoy a 50% discount on Ctrl+Alt+Cheat! Use the coupon code "FIRSTLAUNCH" at checkout. Don't miss out on this limited-time offer! 👉 Boost your productivity-grab Ctrl+Alt+Cheat right here!: qirolab.com/ctrl-alt-cheat
*Note*: React class components aren't recommended for new projects, but it's good to learn them in case you work with legacy code. *JavaScript: A Comprehensive Guide from ES2015 to ES2023 - eBook* 👉 qirolab.gumroad.com/l/javascript-from-es2015-to-es2023
🚀 *Special Offer*: Enjoy a 50% discount on Ctrl+Alt+Cheat! Use the coupon code "FIRSTLAUNCH" at checkout. Don't miss out on this limited-time offer! 👉 *Get Ctrl+Alt+Cheat here*: qirolab.com/ctrl-alt-cheat
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: ru-vid.com/group/PL1TrjkMQ8UbWfFUCimQ50CdrR_J7QvEFW
Excuse me, I want to ask something, I'm stuck. Why is it that I can use Laravel's auth sanctum cookie locally but it doesn't work when deployed to development server? Error 401 when getting user after successfully logging in. Is there something missing in the sanctum config?
Sanctum cookie issues on deployment are common. Check cookie domain, CSRF, session config, and CORS. - Ensure SANCTUM_DOMAIN in your .env file is set correctly for both environments. - Check if your browser is blocking third-party cookies, which might affect cookie settings on the development server. - Verify that the CSRF token is handled correctly in your frontend. Make sure it's included in requests. - For API routes, you might need to exclude them from CSRF verification in app/Http/Middleware/VerifyCsrfToken.php. - Check your session configuration in config/session.php. Ensure it's consistent between environments. Pay attention to domain, path, and secure options. - If your frontend and backend are on different domains, CORS might be interfering. Configure CORS headers appropriately in your backend.
🚨 Last week alert! 🚨 Don't miss your chance to get the Spec-Coder VS Code Extension at 50% off! Use code "YT-FAMILY" at checkout. Offer expires this week! Level up your coding with smart completion, code generation, and more! Don't miss out: qirolab.com/spec-coder
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: ru-vid.com/group/PL1TrjkMQ8UbWfFUCimQ50CdrR_J7QvEFW It is a real-time chat using Laravel WebSocket, and the logic is the same with Laravel Echo.
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!
Thank you so much for your kind words! I'm thrilled to hear that you enjoy my videos. I just uploaded a new video today! I hope you like it. Let me know what you think!
@@QiroLab Thank you so much for the new video! I just watched it and it was incredibly helpful. Your content always makes complex topics much easier to understand. Keep up the great work!
*50% off!* Use code *YT-FAMILY* (limited time offer). One Time Payment, no monthly subscription. 👉 qirolab.com/spec-coder 🔥 Spec Coder: Supercharge Your Coding with AI! (Features & AI Setup) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-88CTOA7jL4s.html
*50% off!* Use code *YT-FAMILY* (limited time offer). One Time Payment, no monthly subscription. 👉 qirolab.com/spec-coder Spec Coder: Supercharge Your Coding with AI! (Features & AI Setup) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-88CTOA7jL4s.html
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.