3 $viewPaths = [realpath(base_path('resources/views'))];
4 if ($theme = env('APP_THEME', false)) {
5 array_unshift($viewPaths, base_path('themes/' . $theme));
11 |--------------------------------------------------------------------------
13 |--------------------------------------------------------------------------
15 | This option defines the theme to use for the application. When a theme
16 | is set there mush be a `themes/<theme_name>` folder to hold the
17 | custom theme overrides.
21 'theme' => env('APP_THEME', false),
24 |--------------------------------------------------------------------------
26 |--------------------------------------------------------------------------
28 | Most templating systems load templates from disk. Here you may specify
29 | an array of paths that should be checked for your views. Of course
30 | the usual Laravel view path has already been registered for you.
34 'paths' => $viewPaths,
37 |--------------------------------------------------------------------------
39 |--------------------------------------------------------------------------
41 | This option determines where all the compiled Blade templates will be
42 | stored for your application. Typically, this is within the storage
43 | directory. However, as usual, you are free to change this value.
47 'compiled' => realpath(storage_path('framework/views')),