More pathing changes
This commit is contained in:
parent
7d414ce017
commit
d964a3f0f3
@ -57,6 +57,21 @@ class App extends Illuminate\Foundation\Application
|
|||||||
return $this->basePath . DS . 'config' . ($path ? DS . $path : $path);
|
return $this->basePath . DS . 'config' . ($path ? DS . $path : $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function environmentPath()
|
||||||
|
{
|
||||||
|
return $this->environmentPath ?: $this->basePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function langPath()
|
||||||
|
{
|
||||||
|
return $this->resourcePath() . DIRECTORY_SEPARATOR . 'lang';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function publicPath()
|
||||||
|
{
|
||||||
|
return $this->basePath . DS . 'public';
|
||||||
|
}
|
||||||
|
|
||||||
public function resourcePath($path = '')
|
public function resourcePath($path = '')
|
||||||
{
|
{
|
||||||
return $this->basePath . DS . 'resources' . ($path ? DS . $path : $path);
|
return $this->basePath . DS . 'resources' . ($path ? DS . $path : $path);
|
||||||
|
@ -3,31 +3,25 @@
|
|||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| View Storage Paths
|
| View Storage Paths
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
|
||||||
| Most templating systems load templates from disk. Here you may specify
|
| Most templating systems load templates from disk. Here you may specify
|
||||||
| an array of paths that should be checked for your views. Of course
|
| an array of paths that should be checked for your views. Of course
|
||||||
| the usual Laravel view path has already been registered for you.
|
| the usual Laravel view path has already been registered for you.
|
||||||
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'paths' => [
|
'paths' => [
|
||||||
realpath(base_path('resources/views')),
|
resource_path('views'),
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Compiled View Path
|
| Compiled View Path
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
|
||||||
| This option determines where all the compiled Blade templates will be
|
| This option determines where all the compiled Blade templates will be
|
||||||
| stored for your application. Typically, this is within the storage
|
| stored for your application. Typically, this is within the storage
|
||||||
| directory. However, as usual, you are free to change this value.
|
| directory. However, as usual, you are free to change this value.
|
||||||
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'compiled' => realpath(storage_path('framework/views')),
|
'compiled' => storage_path('framework/views'),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user