Skip to content

Commit

Permalink
Fixed Blade resolution directive
Browse files Browse the repository at this point in the history
  • Loading branch information
asantibanez committed Jun 16, 2020
1 parent 92804a4 commit 5712dfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LivewireSelectServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Asantibanez\LivewireSelect;

use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
use Illuminate\View\Compilers\BladeCompiler;

Expand Down Expand Up @@ -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'
<script>
window.livewire.on('livewire-select-focus-search', (data) => {
Expand Down

0 comments on commit 5712dfa

Please sign in to comment.