Browse Source

add env variable for compiled view path

Taylor Otwell 11 months ago
parent
commit
5ea6fe18a8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      config/view.php

+ 4 - 1
config/view.php

@@ -28,6 +28,9 @@ return [
     |
     */
 
-    'compiled' => realpath(storage_path('framework/views')),
+    'compiled' => env(
+        'VIEW_COMPILED_PATH',
+        realpath(storage_path('framework/views'))
+    ),
 
 ];