What type of relationship these two tables will have in laravel? <p>i have four tables in database:</p> <ol> <li>users (for storing user details)</li> <li>conversations (for storing conversations id).</li> <li>conversationsmember (for storing conversations member)</li> <li>conversationsreply (for storing conversations reply)</li> </ol> <p>A user will have many conversations and each conversation will have its members and replies.</p> <p>here are the details:</p> <p>Users migration:</p> <pre><code>$table-&gt;increments('id'); $table-&gt;string('name', 32); $table-&gt;string('username', 32); $table-&gt;string('email', 320); $table-&gt;string('password', 64); $table-&gt;timestamps(); </code></pre> <p>Conversations migration:</p> <pre><code>$table-&gt;increments('id'); $table-&gt;timestamps(); </code></pre> <p>conversationsmembers migration:</p> <pre><code>$table-&gt;increments('id'); $table-&gt;integer('conversation_id'); $table-&gt;integer('user_id'); $table-&gt;timestamps(); </code></pre> <p>conversationsreply migrations</p> <pre><code>$table-&gt;increments('id'); $table-&gt;integer('conversation_id'); $table-&gt;integer('user_id'); $table-&gt;timestamps(); </code></pre> <p>Now in User model, i need to define relationship between users table and conversations table. As they are not directly connected, i used hasManyThrough relation.</p> <p>..app/models/User.php</p> <pre><code>... public function conversations() { return $this-&gt;hasManyThrough('Conversation', 'ConversationsMember', 'conversation_id', 'id'); } ... </code></pre> <p>When i 'm trying to use it, it's showing a blank array.</p>