I am developing a website using laravel 11 and would like to add to it the capability to send server-to-browser real time notifications or updates based on certain events.
The server sent event (sse) should, as much as possible, follow these criteria:
1- be based on laravel's real-time mechanisms (event broadcasting, controllers, redis, etc). 2- Public message to be sent to all authenticated users. 3- Private messages to be sent to users based on their $id. 4- The connection should be persistent, re-connects itself if it gets lost for any reason. 5- Favor "ShouldBroadcast" over "ShouldQueue", a worker should dispatch notifications every 60 seconds. 6- The front-end script to display a flash message upon message reception showing the message text. 7- No addition of livewire, alpine, vuejs, react or anything not strictly needed for SSE to work. 8- MOST importantly, the SSE structure should be robust enough to handle 30000 connected users. This includes (only if absolutely necessary) fine tuning nginx and php config settings.
To facilitate working on the project, and since I am using sqlite, I wrapped the whole thing in *.rar that can be downloaded from this link:
https://srv866294.hstgr.cloud/storage/sse.rar
The login page as well as the form to send notifications are already populated with existing users so that you can pick from when you login or after login, test public or private messages. The landing page form (which appears after login) to be used to simulate event triggering. I attach below some pics to give you an idea how it should look like.
Final note: the form in the landing page simulates event triggering by posting the variables to a controller, which would then use "event(new", "broadcast(new" or any applicable method.
Handwritten Notes Transcribed to Text Category: Content Writing, Data Entry, Editing, English Spelling, Proofreading, Text Recognition, Transcription, Word Processing Budget: $250 - $750 USD
AI Branding Ads & Video Creation Category: After Effects, AI Art Creation, AI Content Creation, AI Graphic Design, Animation, Graphic Design, Social Media Marketing, Video Editing Budget: $30 - $250 USD
Innovation Collaboration MVP Web App Category: Graphic Design, Mobile App Development, Node.js, PHP, UI / User Interface, UX / User Experience, Web Development, Web Design Budget: $10 - $40 USD
14-Dec-2025 16:58 GMT
Website UI/UX Design Category: Adobe XD, Graphic Design, Prototyping, UI / User Interface, User Interface / IA, UX / User Experience, Web Design Budget: ₹1500 - ₹12500 INR
14-Dec-2025 16:58 GMT
Refine Colored Floor Plan & Furnishings Category: 2D Drafting, 2D Drawing, 3D Modelling, 3D Rendering, AutoCAD, Building Design, Interior Design, Revit Budget: $10 - $30 USD
14-Dec-2025 16:58 GMT
Android App UI & Feature Tweaks Category: Android, Android App Development, Android Studio, Java, Kotlin, Mobile App Development, Mobile Development, UI / User Interface Budget: ₹600 - ₹1500 INR
14-Dec-2025 16:58 GMT
Motivation Santé Mentale Quotidienne Category: Article Writing, Content Writing, Copywriting, French Translator, Graphic Design, Psychology, Social Media Management, Translation Budget: $15 - $25 USD
14-Dec-2025 16:57 GMT
Custom Web CMS Development Category: API Development, Content Management System (CMS), HTML, JavaScript, MySQL, PHP, Web Development, Web Design Budget: $15 - $25 USD
14-Dec-2025 16:56 GMT
NX CAD 3D Engineering Drafting Category: 3D CAD, 3D Drafting, 3D Modelling, Mechanical Engineering, NX CAD, Product Design Budget: $10 - $30 USD
Upgrade My Android BLE App Category: Android, Android App Development, Android Studio, API, Bluetooth Low Energy (BLE), Java, Mobile App Development, Mobile Development, Software Testing Budget: $30 - $250 USD
14-Dec-2025 16:53 GMT
CAD Design with Light Curve and Knobs Category: 3D CAD, 3D Design, 3D Modelling, 3D Printing, CAD / CAM, Mechanical Engineering, Product Design, Solidworks Budget: $10 - $30 USD