title: Enabling / Disabling Features in a Laravel App
body: <p>I'm building a Laravel app, which has a number of various features. I want to be able to enable or disable them depending on a particular domain's requirement. Currently, I have in my config a series of flags such as:</p>
  
  <pre><code>'is_feature_1_enabled' =&gt; true,
  'is_feature_2_enabled' =&gt; false,
  </code></pre>
  
  <p>... and so on.</p>
  
  <p>Then in my controllers and views, I check those config values to see whether or not I should be displaying something, allowing certain actions, etc. My app is starting to get polluted with these kinds of checks everywhere.</p>
  
  <p><strong>Is there a best practice method of managing features in a Laravel app?</strong></p>