title: Laravel Global Settings Model
body: <p>I'm working on building a small CRUD app in Laravel 5. I have a few app wide settings such as "SiteTitle" and "BaseURL" I'd like to give my admins the ability to change from the UI. My whole app uses a base.blade.php template that gets extended to the different views+controllers, this is where these settings would most likely be used.</p>
  
  <p>Something like:</p>
  
  <pre><code>&lt;h1&gt;&lt;a href="#"&gt;{{ $setting-&gt;SiteName }}&lt;/a&gt;&lt;/h1&gt;
  </code></pre>
  
  <p>I have the settings stored in a database table that are tied to a Setting.php model.</p>
  
  <p>I'd rather not everyone of my controller methods query the database for these settings to just pass them up to the template base.blade.php. </p>
  
  <p>What's the best way of creating some type of global setting variable I can reuse throughout the app?</p>
  
  <p>Thanks in advance!</p>