title: Eloquent query in custom config file (/config) Laravel 5
body: <p>Trying to fire the following Eloquent query in a custom config file which is present in: <code>/config</code> directory in Laravel 5:</p>
  
  <pre><code>'array_name' =&gt;(App\MyApp\Models\ModelName::lists('column_name', 'column_name')),
  </code></pre>
  
  <p>Getting the following error:</p>
  
  <blockquote>
    <p>Fatal error: Call to a member function connection() on a non-object in /path/to/the/project/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 3132 </p>
  </blockquote>