title: Laravel artisan route:cache throw error Constant XXX already defined
body: <h1>Env</h1>
  
  <ul>
  <li>Laravel 5.5</li>
  </ul>
  
  <h1>Issue</h1>
  
  <p>When I run:</p>
  
  <pre><code>php artisan route:cache
  </code></pre>
  
  <p>It throws error:</p>
  
  <blockquote>
    <p>In app.php line 3:</p>
    
    <p>Constant XXX already defined</p>
  </blockquote>
  
  <p>in my config/app.php, I defined some global constants, such as:</p>
  
  <pre><code>define("XXX", "xxx");
  </code></pre>
  
  <p>If I removed them, no error thrown anymore. </p>
  
  <h1>Question</h1>
  
  <p>I wonder if I want to keep those constants in config files, is there any way to avoid this problem?</p>