From 64a466e89c0ad9536a96115a53da7aaf655cd6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Sun, 10 Dec 2023 14:48:15 +0000 Subject: [PATCH] fixed blade directive registration --- src/Provider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 . ') !!}'; });