Add price directive
This commit is contained in:
parent
5d6339c1ad
commit
92f3e62abb
|
@ -29,5 +29,7 @@ class BladeCompiler extends BaseBladeCompiler
|
|||
'->replace("'.$this->slashReplace.'", "$\\\textbackslash$")',
|
||||
'; ?>',
|
||||
]));
|
||||
|
||||
$this->directive('price', fn ($expression) => '<?php echo number_format('.$expression.', 2, ",", "."); ?>');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue