title: Laravel 5.1 PHP DOMDocument() class not found
body: <p>I'm using PHP's built-in DOMDocument() class to do some simple web-scraping.
  However, it works on my 4.2 site, but not my 5.1 (both are on same installation of PHP).</p>
  <p>Here's the error:</p>
  <blockquote>
  <p>Class 'App\Http\Controllers\III_Ranks\DOMDocument' not found</p>
  </blockquote>
  <p>Here's my controller:</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\III_Ranks;
  
  use App\Http\Controllers\Controller;
  
  use Illuminate\Http\Request;
  use Illuminate\Http\Response;
  
  class RanksController extends Controller 
  {
      public function getRanks()
      {
          $list1 = new DOMDocument();
          //etc...
      }
  }
  </code></pre>
  <p>I figure this is a namespace issue, but I have no idea how to access DOMDocument()</p>
  <p>Thanks for any help.</p>