Laravel 5. Debug mode
<p>I set debug mode to <code>true</code> in config->app and deployed it on the server:</p>

<pre><code>'debug' =&gt; env('APP_DEBUG', true),
</code></pre>

<p>I have following code in Controller to check the mode:</p>

<pre><code>...
$debug = config('app.debug');
var_dump($debug);
$product-&gt;save();
</code></pre>

<p>Result on local machine:</p>

<blockquote>
  <p>C:\xampp\htdocs\MK\app\Http\Controllers\ProductController.php:45:boolean
  true</p>
</blockquote>

<p>Result on the server:</p>

<blockquote>
  <p>bool(false) Whoops, looks like something went wrong.</p>
</blockquote>

<p>Why isn't debug mode set on server side?</p>