Browse Source

add new `check_compiled` option

Andrew Brown 4 years ago
parent
commit
2fe113e606
1 changed files with 12 additions and 0 deletions
  1. 12 0
      config/view.php

+ 12 - 0
config/view.php

@@ -33,4 +33,16 @@ return [
         realpath(storage_path('framework/views'))
     ),
 
+    /*
+     |--------------------------------------------------------------------------
+     | Check Compiled Views
+     |--------------------------------------------------------------------------
+     |
+     | On every request the framework will check to see if a view has expired
+     | to determine if it needs to be recompiled. If you are in production
+     | and precompiling your views we can skip this check to save time.
+     |
+     */
+    'check_compiled' => env('APP_ENV') !== 'production',
+
 ];