Skip to content

Commit

Permalink
Update helpers1.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit authored Nov 4, 2023
1 parent 57c634d commit 8e9a6a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/helpers1.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ function tgn_convert_action_name(string $action): string
}
}

if (!function_exists('config') && !function_exists('Illuminate\Foundation\helpers\config')) {
if (!class_exists('Illuminate\Foundation\Application')) {
if (!function_exists('config')) {
/**
* Return config value by string
*
Expand All @@ -115,7 +116,7 @@ function config(string $string): mixed
}
}

if (!function_exists('view') && !function_exists('Illuminate\Foundation\helpers\view')) {
if (!function_exists('view')) {
/**
* Get view template
*
Expand All @@ -130,4 +131,5 @@ function view(string $partialPath, array $data = []): null|string
return $content ?: null;
}
}
}

0 comments on commit 8e9a6a3

Please sign in to comment.