From dbdaade2e479af6c2dfa629ac30bf6fb077c5c5c Mon Sep 17 00:00:00 2001 From: Rodolfo Ruiz Date: Tue, 5 Oct 2021 15:04:22 -0700 Subject: [PATCH 1/3] adding lang_path to helpers --- src/Illuminate/Foundation/helpers.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index 5f5a71168701..10817f26bf08 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -791,6 +791,19 @@ function storage_path($path = '') } } +if (! function_exists('lang_path')) { + /** + * Get the path to the language folder. + * + * @param string $path + * @return string + */ + function lang_path($path = '') + { + return app('path.lang').($path ? DIRECTORY_SEPARATOR.$path : $path); + } +} + if (! function_exists('today')) { /** * Create a new Carbon instance for the current date. From 27a1e47842b4f30ac53d8148cd31b3a3ccde2339 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 6 Oct 2021 08:37:09 -0500 Subject: [PATCH 2/3] Update helpers.php --- src/Illuminate/Foundation/helpers.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index 10817f26bf08..8c1b86bced9b 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -483,6 +483,20 @@ function logger($message = null, array $context = []) } } + +if (! function_exists('lang_path')) { + /** + * Get the path to the language folder. + * + * @param string $path + * @return string + */ + function lang_path($path = '') + { + return app('path.lang').($path ? DIRECTORY_SEPARATOR.$path : $path); + } +} + if (! function_exists('logs')) { /** * Get a log driver instance. @@ -791,19 +805,6 @@ function storage_path($path = '') } } -if (! function_exists('lang_path')) { - /** - * Get the path to the language folder. - * - * @param string $path - * @return string - */ - function lang_path($path = '') - { - return app('path.lang').($path ? DIRECTORY_SEPARATOR.$path : $path); - } -} - if (! function_exists('today')) { /** * Create a new Carbon instance for the current date. From 1a61dc0c8790b0e865086b489d8d60eea4c601c8 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 6 Oct 2021 08:37:23 -0500 Subject: [PATCH 3/3] Update helpers.php --- src/Illuminate/Foundation/helpers.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index 8c1b86bced9b..bc6e24b66319 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -483,7 +483,6 @@ function logger($message = null, array $context = []) } } - if (! function_exists('lang_path')) { /** * Get the path to the language folder.