title: Laravel foreach only returns first value
body: <p>First please be gentle i am a beginner and only prectising,</p>
  
  <p>I have a problem, i would like to get laravel's language files and edit their content.</p>
  
  <p>My problem is what i dont really understand is the following</p>
  
  <p>i have a functions what returns the actual files, i have a variable what stores this</p>
  
  <pre><code>$directory =  File::files(self::$lang_path.$code);
  </code></pre>
  
  <p>id i die and dump i get back the following</p>
  
  <pre><code>array(3) {
    [0]=&gt;
    string(26) "app/lang/en/pagination.php"
    [1]=&gt;
    string(25) "app/lang/en/reminders.php"
    [2]=&gt;
    string(26) "app/lang/en/validation.php"
  }
  </code></pre>
  
  <p>all fine, but if <code>foreach</code> it and die and dump </p>
  
  <pre><code>$directory =  File::files(self::$lang_path.$code);
  
      foreach ($directory as $files) 
      {
          dd($files);
  
      }
  </code></pre>
  
  <p>i just get back <code>string(26) "app/lang/en/pagination.php"</code></p>
  
  <p>could please tell me what i am doing wrong?</p>
  
  <p>and the problem is i need it because i will need nested foreac</p>
  
  <p>like</p>
  
  <pre><code>$directory =  File::files(self::$lang_path.$code);
  
          foreach ($directory as $files) 
          {
              foreach ($files as $file) 
              {
                  // preform more stuff
              }
  
          }
  </code></pre>
  
  <p>and idont understand what iam doing wrong, could please someone give me a hint?</p>