title: How to fix "Warning: Invalid argument supplied for foreach()"
body: <p>I'm making a website in Laravel, CSS, and HTML.</p>
  
  <p>The current issue is that my code, won't gather information from files inside the folder "_videos" with this "summon" code.</p>
  
  <pre class="lang-php prettyprint-override"><code>@foreach ($videos as $video)
  
      {{$page-&gt;title}}
  
  @endforeach
  </code></pre>
  
  <p>Error message</p>
  
  <blockquote>
    <p>Warning: Invalid argument supplied for foreach()</p>
  </blockquote>
  
  <p>Folder:
  <a href="https://i.stack.imgur.com/E3Fse.png" rel="nofollow noreferrer">Image of folder</a></p>