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 27bd0f5 commit 64a466e
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 @@ -36,7 +36,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('apexchartsScripts', function ($expression) {
return '{!! \Akaunting\Apexcharts\Chart::loadScript(' . $expression . ') !!}';
});
Expand Down

0 comments on commit 64a466e

Please sign in to comment.