Display messages between two users. Laravel
<p>I need to display messages between two users. I've created table <code>conversations</code>, it has <code>con_id</code>, <code>user_id</code>, <code>friend_id</code> fields. I don't know how to write logic so that messages will be shown only those who are written between these two users which is in <code>user_id</code> and <code>friend_id</code> fields. </p>

<p>Storing message:</p>

<pre><code>public function store(Request $request, $id)
{
    $conv = new Conversation();
    $conv-&gt;user_id = Auth::user()-&gt;id;
    $friend = User::where('id', $id)-&gt;first();
    $conv-&gt;friend_id = $friend-&gt;id;
    $conv-&gt;message = $request-&gt;input('message');
    $conv-&gt;save();
}
</code></pre>