From 4020ec2181ddc6d35e613cadc5b58fe9eb5ef3e0 Mon Sep 17 00:00:00 2001 From: halloei Date: Mon, 21 Feb 2022 11:32:48 +0100 Subject: [PATCH] Add langPath() method to Application --- src/Application.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Application.php b/src/Application.php index e78eee6b..613224f4 100644 --- a/src/Application.php +++ b/src/Application.php @@ -831,6 +831,17 @@ public function databasePath($path = '') return $this->basePath.DIRECTORY_SEPARATOR.'database'.($path ? DIRECTORY_SEPARATOR.$path : $path); } + /** + * Get the path to the language files. + * + * @param string $path + * @return string + */ + public function langPath($path = '') + { + return $this->getLanguagePath().($path != '' ? DIRECTORY_SEPARATOR.$path : ''); + } + /** * Get the storage path for the application. *