We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96b8c40 commit 6988a6fCopy full SHA for 6988a6f
config/view.php
@@ -1,5 +1,10 @@
1
<?php
2
3
+$viewPaths = [realpath(base_path('resources/views'))];
4
+if ($theme = env('APP_THEME', false)) {
5
+ array_unshift($viewPaths, base_path('themes/' . $theme));
6
+}
7
+
8
return [
9
10
/*
@@ -13,9 +18,7 @@
13
18
|
14
19
*/
15
20
16
- 'paths' => [
17
- realpath(base_path('resources/views')),
- ],
21
+ 'paths' => $viewPaths,
22
23
24
|--------------------------------------------------------------------------
themes/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
0 commit comments