title: Accessing each grandchild element in laravel blade
body: <p>I have a User Model and Subscription Model.
      The User model "hasMany" relationship with subscription as Subscription"belongsTo" User.
      In my blade I am trying somethings like this to display all the user and their subscriptions.
      Note: $users = Models\User::all()</p>
  
  <pre><code> `@foreach($users as $user)
      &lt;ul&gt;
      User:{{$user-&gt;name}}
      @foreach($user-&gt;subscription as $sub)
      {{$sub-&gt;expiry_date}}
      @endforeach
      &lt;/ul&gt;
  @endforeach`
  </code></pre>
  
  <p>The names are displayed, but the subscriptions don't display. Any help please.</p>
  
  <p>Models</p>
  
  <pre><code> //The User model
  Public function subscription()
  {
   return $this-&gt;hasMany('App\Models\Subscription');
  }
  
  
  //In my Subscription Model
  public function user()
  {
   return $this-&gt;belongs to('\App\Models\User');
  } 
  </code></pre>