title: 'ReflectionException' Class translator does not exists
body: <p>I'm trying to use localization as follow,</p>
  
  <pre><code>$types = trans('constants.type');
  </code></pre>
  
  <p>I have created <code>constants.php</code> file as follows (which is in config directory) and this are it's language files,</p>
  
  <pre><code>/resources
      /lang
          /en
              constants.php
          /es
              constants.php
  </code></pre>
  
  <h1>constants.php</h1>
  
  <pre><code>return ['type' =&gt; 'Type'];
  </code></pre>
  
  <p>same way it translated in other file with same format, but this things gives me following error </p>
  
  <p><strong><em>Note:</em></strong> I have used this in config directory's file,</p>
  
  <blockquote>
    <p>(1/1) ReflectionException
    Class translator does not exist</p>
    
    <p>in Container.php (line 729)
    at ReflectionClass->__construct('translator')
    in Container.php (line 729)
    at Container->build('translator')
    in Container.php (line 608)
    at Container->resolve('translator')
    in Container.php (line 575)
    at Container->make('translator')</p>
  </blockquote>
  
  <h1>Problem:</h1>
  
  <p><a href="https://laravel.com/docs/5.4/helpers#method-trans" rel="noreferrer"><code>trans()</code></a> method not working in <code>constants.php</code> file which i have created in <code>config</code> directory as follow,</p>
  
  <p>/config
      constants.php</p>