diff --git a/src/Provider.php b/src/Provider.php index 4c7e093..2df07a8 100644 --- a/src/Provider.php +++ b/src/Provider.php @@ -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 . ') !!}'; });