Init development stack
This commit is contained in:
83
config/view.php
Normal file
83
config/view.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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 view paths have already been registered for you.
|
||||
|
|
||||
*/
|
||||
|
||||
'paths' => [
|
||||
get_theme_file_path('/resources/views'),
|
||||
get_parent_theme_file_path('/resources/views'),
|
||||
resource_path('views'),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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.
|
||||
|
|
||||
*/
|
||||
|
||||
'compiled' => env('VIEW_COMPILED_PATH', storage_path('framework/views')),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| View Debugger
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enabling this option will display the current view name and data. Giving
|
||||
| it a value of 'view' will only display view names. Giving it a value of
|
||||
| 'data' will only display current data. Giving it any other truthy value
|
||||
| will display both.
|
||||
|
|
||||
*/
|
||||
|
||||
'debug' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| View Namespaces
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Blade has an underutilized feature that allows developers to add
|
||||
| supplemental view paths that may contain conflictingly named views.
|
||||
| These paths are prefixed with a namespace to get around the conflicts.
|
||||
| A use case might be including views from within a plugin folder.
|
||||
|
|
||||
*/
|
||||
|
||||
'namespaces' => [
|
||||
/*
|
||||
| Given the below example, in your views use something like:
|
||||
| @include('MyPlugin::some.view.or.partial.here')
|
||||
*/
|
||||
// 'MyPlugin' => WP_PLUGIN_DIR . '/my-plugin/resources/views',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| View Directives
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The namespaces where view components reside. Components can be referenced
|
||||
| with camelCase & dot notation.
|
||||
|
|
||||
*/
|
||||
|
||||
'directives' => [
|
||||
// 'foo' => App\View\FooDirective::class,
|
||||
],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user