title: Whats the alternative for file_get_contents in Laravel?
body: <p><code>file_get_contents($url)</code> is <strong>working</strong> but Laravel functions not working.</p>
  
  <p>File is available at this URL</p>
  
  <pre><code>$url = "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat";
  </code></pre>
  
  <p>this simple PHP function is working and retrieving the file</p>
  
  <pre><code>$content = file_get_contents($url);
  </code></pre>
  
  <p>but all these Laravel functions which mentioned below are showing this error : </p>
  
  <blockquote>
    <p>"File does not exist at path
    <a href="https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat" rel="noreferrer">https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat</a>"</p>
  </blockquote>
  
  <p>Code is available below:</p>
  
  <pre><code>use File; // i have included this before class
  use Storage; // i have included this before class
  
      $url = "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat";
      $content = File::get($url); // not working
  
      $content = Storage::get($url); // not working
  
      $content = File::get(url($url)); // not working
  
      $content = file_get_contents($url); // working fine
  
      return $content;
  </code></pre>