title: Get related objects on the view
body: <p>I have related model </p>
  
  <pre><code>
  class Myevent extends Model
  {
      public function photo()
      {
          return $this-&gt;hasMany('App\EventPhoto');
      }
  }
  
  </code></pre>
  
  <p>Ob blade if loop i get items Myevents</p>
  
  <pre><code>  @foreach($evetns as $event)
          &lt;b&gt;{{$event-&gt;name}}&lt;/b&gt; &lt;br&gt;
          {{$event-&gt;place}} &lt;br&gt;
          {{$event-&gt;description}} &lt;br&gt;
          @foreach($event-&gt;photo() as  $item)
              {{$item-&gt;id}}
            @endforeach
      @endforeach
  </code></pre>
  
  <p>How can I call related objects in a loop on blade?</p>