More pathing changes

This commit is contained in:
Nabeel Shahzad 2017-12-16 22:07:58 -06:00
parent 7d414ce017
commit d964a3f0f3
2 changed files with 17 additions and 8 deletions

View File

@ -57,6 +57,21 @@ class App extends Illuminate\Foundation\Application
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 = '')
{
return $this->basePath . DS . 'resources' . ($path ? DS . $path : $path);

View File

@ -3,31 +3,25 @@
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 Laravel view path has already been registered for you.
|
*/
'paths' => [
realpath(base_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' => realpath(storage_path('framework/views')),
'compiled' => storage_path('framework/views'),
];