title: Laravel 5.7: A facade root has not been set
body: <p>I'm trying to get sitewide global settings from the database and use those settings in my controllers.  </p>
  
  <p>In order to do this I've created a custom <strong>global.php</strong> file under <strong>config</strong> directory.<br>
  Defined <strong>key=>value</strong> pairs.<br>
  Tried to get values using <strong>DB::table(....)</strong> facade.  </p>
  
  <p>But it returns this error:</p>
  
  <blockquote>
    <p><strong>A facade root has not been set</strong>.</p>
  </blockquote>
  
  <p>I cannot get past beyond this.</p>
  
  <p><strong>config.php</strong> file as follows:</p>
  
  <pre><code>use Illuminate\Support\Facades\DB;
  
  return [ 
  
      'image_resize' =&gt; DB::table('settings')-&gt;where('id', 1)-&gt;value('image_resize'),
      'popup' =&gt; DB::table('settings')-&gt;where('id', 1)-&gt;value('popup'),
      'site_on' =&gt; DB::table('settings')-&gt;where('id', 1)-&gt;value('site_on')
  
  ];
  </code></pre>