Skip to content

Commit

Permalink
add new helper languagePath src/helpers/tower.php
Browse files Browse the repository at this point in the history
  • Loading branch information
amirfaramarzi committed Sep 4, 2021
1 parent 00a6c0e commit 9141c91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/helpers/tower.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ function storagePath(): string
}
}

if (! function_exists('languagePath')) {
function languagePath(): string
{
return basePath() . '/language/';
}
}

if (! function_exists('response')) {
function response(string $data = '', int $status = 200, array $headers = []): Response
{
Expand Down

0 comments on commit 9141c91

Please sign in to comment.