From 5712dfaecaba09a103ae6f583b03f6ec7aa5b622 Mon Sep 17 00:00:00 2001 From: asantibanez Date: Tue, 16 Jun 2020 08:53:30 -0500 Subject: [PATCH] Fixed Blade resolution directive --- src/LivewireSelectServiceProvider.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/LivewireSelectServiceProvider.php b/src/LivewireSelectServiceProvider.php index 89d81bd..bb999fd 100755 --- a/src/LivewireSelectServiceProvider.php +++ b/src/LivewireSelectServiceProvider.php @@ -2,7 +2,6 @@ namespace Asantibanez\LivewireSelect; -use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; use Illuminate\View\Compilers\BladeCompiler; @@ -30,7 +29,7 @@ public function register() $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'livewire-select'); $this->app->afterResolving('blade.compiler', function (BladeCompiler $bladeCompiler) { - Blade::directive('livewireSelectScripts', function () { + $bladeCompiler->directive('livewireSelectScripts', function () { return <<<'HTML'