]> BookStack Code Mirror - bookstack/blob - config/view.php
Merge branch 'master' into patch-5
[bookstack] / config / view.php
1 <?php
2
3 /**
4  * View configuration options.
5  *
6  * Changes to these config files are not supported by BookStack and may break upon updates.
7  * Configuration should be altered via the `.env` file or environment variables.
8  * Do not edit this file unless you're happy to maintain any changes yourself.
9  */
10
11 // Join up possible view locations
12 $viewPaths = [realpath(base_path('resources/views'))];
13 if ($theme = env('APP_THEME', false)) {
14     array_unshift($viewPaths, base_path('themes/' . $theme));
15 }
16
17 return [
18
19     // App theme
20     // This option defines the theme to use for the application. When a theme
21     // is set there must be a `themes/<theme_name>` folder to hold the
22     // custom theme overrides.
23     'theme' => env('APP_THEME', false),
24
25     // View Storage Paths
26     // Most templating systems load templates from disk. Here you may specify
27     // an array of paths that should be checked for your views. Of course
28     // the usual Laravel view path has already been registered for you.
29     'paths' => $viewPaths,
30
31     // Compiled View Path
32     // This option determines where all the compiled Blade templates will be
33     // stored for your application. Typically, this is within the storage
34     // directory. However, as usual, you are free to change this value.
35     'compiled' => realpath(storage_path('framework/views')),
36
37 ];
Morty Proxy This is a proxified and sanitized view of the page, visit original site.