title: Laravel and react native chat
body: <p>I'm currently building the mobile app using react native in the frontend, and Laravel as a backend framework.</p>
  <p>Now I need to develop real time chat, where could chat two users:</p>
  <ol>
  <li>authorized user</li>
  <li>Some other user</li>
  </ol>
  <p>Both users are from users table (MySQL).</p>
  <p>So how I imaging this scenario is - I make the new database table called &quot;messages&quot; (id, active_user_id, matching_user_id, message, created_at, updated_at).</p>
  <p>So what is the <em>next scenario</em>? Do I need to make backend with socket.io and in frontend it will use also socket.io? Maybe you have some different ideas of database structure?</p>
  <p>Just please explain me the best possible scenario how this could be done.</p>