fix: 🐛 set blade directives function in public #88
This commit is contained in:
parent
0048fcf0ab
commit
e7db2d4523
1 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ class BladeDirectivesHelper
|
|||
* @param mixed $value
|
||||
* @return string
|
||||
*/
|
||||
private static function formatPriceValue($value): string
|
||||
public static function formatPriceValue($value): string
|
||||
{
|
||||
if (is_float($value)) {
|
||||
return sprintf('%s €', number_format($value, 2, ',', ' '));
|
||||
|
|
@ -43,7 +43,7 @@ class BladeDirectivesHelper
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
private static function shouldShowPrices(): bool
|
||||
public static function shouldShowPrices(): bool
|
||||
{
|
||||
return (config('bosettings.show_prices_authenticated') === "authenticated" && Auth::guard('customer')->check())
|
||||
|| config('bosettings.show_prices_guest') == "guest";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue