title: Undefined constant in Laravel 5.4
body: <p>I am migrating an old code from 4.2 to 5.4. 
  My index.php is triggering the error: undefined constant CURRENCY_BEFORE assumed 'CURRENCY_BEFORE</p>
  
  <p>from this line:</p>
  
  <pre><code>&lt;select name="curreny_position"&gt;
      &lt;option value="BEFORE"
      &lt;?php if ($curr_pos['value'] == CURRENCY_BEFORE) echo "selected"; ?&gt;&gt; 
       Before
      &lt;/option&gt;
      &lt;option value="AFTER" &lt;?php if ($curr_pos['value'] == CURRENCY_AFTER) echo "selected"; ?&gt;&gt;After
      &lt;/option&gt;
  </code></pre>
  
  <p>I am not sure if this would help, but this is the callout in my settings.php file:</p>
  
  <pre><code>{
      $currency_position = self::param('site', 'curr_position')['value'];
      $currency = self::param('site', 'currency')['value'];
      switch ($currency_position) {
          case CURRENCY_BEFORE:
              return implode(' ', [$currency, number_format($amount, 2)]);
              break;
          case CURRENCY_AFTER:
              return implode(' ', [number_format($amount, 2), $currency]);
              break;
   }
  </code></pre>
  
  <p>what would be the proper way to define CURRENCY_BEFORE above?</p>