title: Defining constants in laravel
body: <p>In laravel, there is no constant file defined, so I went on and searched for a way to implement the use of constants. The method below is what I managed to put together:</p>
  
  <pre><code>// app/config/constants.php
  return['CONSTANT_NAME' =&gt; 'value'];
  
  // index.blade.php
  {{ Config::get('constants.CONSTANT_NAME') }}
  </code></pre>
  
  <p>Now, my question is; is there a cleaner way of retrieving my constants in my view? Something like:</p>
  
  <pre><code>{{ Constant::get('CONSTANT_NAME') }}
  </code></pre>
  
  <p>This is in order to keep my view nice, short and clean. </p>
  
  <p>Appreciate the input!</p>