view.php
paths
注释翻译:
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'paths' => [
resource_path('views'),
],
/*
|--------------------------------------------------------------------------
| 视图存储路径
|--------------------------------------------------------------------------
|
| 大多数模板系统从磁盘加载模板。 在这里你可以指定一个可以检查你的视图的路径数组。
| 当然,通常Laravel已经为您注册了视图路径。
|
|
*/
'paths' => [
resource_path('views'),
],
个人理解:模板
*.blade.php
所处路径
compiled
注释翻译:
/*
|--------------------------------------------------------------------------
| 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' => realpath(storage_path('framework/views')),
/*
|--------------------------------------------------------------------------
| 编译视图路径
|--------------------------------------------------------------------------
|
| 该选项确定所有已编译 Blade 模板的存储位置。
| 通常,这在存储目录内。 但是,像平常一样,你可以自由改变这个值。
|
|
*/
'compiled' => realpath(storage_path('framework/views')),
个人理解:编译后的模板存储路径。
网友评论