2015-07-12 15:01:42 -04:00
|
|
|
<?php
|
|
|
|
|
2018-12-23 11:26:39 -05:00
|
|
|
/**
|
|
|
|
* View configuration options.
|
|
|
|
*
|
|
|
|
* Changes to these config files are not supported by BookStack and may break upon updates.
|
|
|
|
* Configuration should be altered via the `.env` file or environment variables.
|
|
|
|
* Do not edit this file unless you're happy to maintain any changes yourself.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Join up possible view locations
|
2017-12-31 11:25:58 -05:00
|
|
|
$viewPaths = [realpath(base_path('resources/views'))];
|
|
|
|
if ($theme = env('APP_THEME', false)) {
|
|
|
|
array_unshift($viewPaths, base_path('themes/' . $theme));
|
|
|
|
}
|
|
|
|
|
2015-07-12 15:01:42 -04:00
|
|
|
return [
|
|
|
|
|
2018-12-23 11:26:39 -05:00
|
|
|
// App theme
|
|
|
|
// This option defines the theme to use for the application. When a theme
|
|
|
|
// is set there must be a `themes/<theme_name>` folder to hold the
|
|
|
|
// custom theme overrides.
|
2018-02-17 07:36:24 -05:00
|
|
|
'theme' => env('APP_THEME', false),
|
|
|
|
|
2018-12-23 11:26:39 -05:00
|
|
|
// View Storage Paths
|
|
|
|
// Most templating systems load templates from disk. Here you may specify
|
|
|
|
// an array of paths that should be checked for your views. Of course
|
|
|
|
// the usual Laravel view path has already been registered for you.
|
2017-12-31 11:25:58 -05:00
|
|
|
'paths' => $viewPaths,
|
2015-07-12 15:01:42 -04:00
|
|
|
|
2018-12-23 11:26:39 -05:00
|
|
|
// Compiled View Path
|
|
|
|
// This option determines where all the compiled Blade templates will be
|
|
|
|
// stored for your application. Typically, this is within the storage
|
|
|
|
// directory. However, as usual, you are free to change this value.
|
2015-07-12 15:01:42 -04:00
|
|
|
'compiled' => realpath(storage_path('framework/views')),
|
|
|
|
|
|
|
|
];
|