Laravel 5 using pivot table with hasMany relationship
<p>I'm making a poll system and I have two tables :</p>

<ul>
<li><p><strong><code>polls</code></strong> table : Has those fields (<code>id,question,created_at,updated_at</code>).</p></li>
<li><p><strong><code>choices</code></strong> table : Has those fields (<code>id,poll_id,choice</code>).</p></li>
</ul>

<p>And a pivot table named <strong><code>choice_poll</code></strong> : Has those fields (<code>id,choice_id,poll_id,ip,name,phone, comment ,created_at,updated_at</code>)</p>

<p><strong>Poll Model :</strong></p>

<pre><code>class Poll extends Model 
{

    protected $table = 'polls';
    protected $fillable = ['question'];
    public $timestamps = true;

    public function choices()
    {
      return $this-&gt;BelongsToMany('App\Choice')-&gt;withPivot('ip','name','phone','comment');
    }
}
</code></pre>

<p><strong>Choice Model :</strong></p>

<pre><code>class Choice extends Model 
{

    protected $table = 'choices';
    protected $fillable = ['poll_id','choice'];
    public $timestamps = false;

    public function poll()
    {
      return $this-&gt;belongsTo('App\Poll')-&gt;withPivot('ip','name','phone','comment');
    }
}
</code></pre>

<p>Now  when I try to build this query it doesn't return the choices :</p>

<pre><code>$poll-&gt;first()-&gt;choices()-&gt;get()
</code></pre>

<p><strong>PS:</strong> There is many choices in the choices table associated with the first poll.</p>