Skip to content

Commit de4c1a4

Browse files
committed
Revert to facade.
1 parent 6c9f7a9 commit de4c1a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ExportServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Yajra\DataTables;
44

55
use Illuminate\Support\ServiceProvider;
6+
use Livewire\Livewire;
67
use Livewire\LivewireServiceProvider;
78
use Yajra\DataTables\Commands\DataTablesPurgeExportCommand;
89
use Yajra\DataTables\Livewire\ExportButtonComponent;
@@ -16,7 +17,7 @@ public function boot(): void
1617
$this->publishAssets();
1718

1819
if (! $this->app->runningInConsole()) {
19-
app('livewire')->component('export-button', ExportButtonComponent::class);
20+
Livewire::component('export-button', ExportButtonComponent::class);
2021
}
2122
}
2223

0 commit comments

Comments
 (0)