Skip to content

Commit

Permalink
fixed blade directive registration
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Dec 10, 2023
1 parent 0d71f00 commit 3e3a432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function boot(): void

public function registerBladeDirectives(): void
{
$this->app->afterResolving('blade.compiler', function (BladeCompiler $bladeCompiler) {
$this->callAfterResolving('blade.compiler', function (BladeCompiler $bladeCompiler) {
$bladeCompiler->directive('money', function (?string $expression) {
return "<?php echo money($expression); ?>";
});
Expand Down

0 comments on commit 3e3a432

Please sign in to comment.