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);