Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

thesnakebite's avatar

What's the best modern approach for implementing real-time chat in Laravel 11 + Vue 3 + Inertia?

Hi everyone!

I'm working on implementing a real-time chat feature in my application with the following stack:

  • Laravel 11
  • Vue 3
  • Inertia
  • PHP 8.2
  • TailwindCSS

Requirements:

  • Real-time messaging
  • File sharing capabilities
  • Private conversations between users
  • Online/offline status
  • Read receipts
  • Message history

I've been researching different approaches like:

  • Pusher
  • Laravel Websockets
  • Laravel Echo
  • Soketi

My main concerns are:

  1. What's the most modern and maintainable approach in 2024?
1 like
2 replies
dumitru-caldare's avatar

From my experience pusher is the easiest to implement, but eventually it will get expensive to use it. Then you have soketi, it's not that easy to implement, and you will need to setup it manually on your server, but when everything is done you will be able to scale it on your server and it's not that expensive. Also their is the laravel reverb, I didn't try it yet but it's a first party package, and from documentation it seems like it will be easier to work with then soketi and it will not have the downside of pusher to be expensive.

Note: Laravel Echo - is not a websocket server, it's the js package to work with the named server, so you will use it in any case.

1 like

Please or to participate in this conversation.