We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c9f7a9 commit de4c1a4Copy full SHA for de4c1a4
src/ExportServiceProvider.php
@@ -3,6 +3,7 @@
3
namespace Yajra\DataTables;
4
5
use Illuminate\Support\ServiceProvider;
6
+use Livewire\Livewire;
7
use Livewire\LivewireServiceProvider;
8
use Yajra\DataTables\Commands\DataTablesPurgeExportCommand;
9
use Yajra\DataTables\Livewire\ExportButtonComponent;
@@ -16,7 +17,7 @@ public function boot(): void
16
17
$this->publishAssets();
18
19
if (! $this->app->runningInConsole()) {
- app('livewire')->component('export-button', ExportButtonComponent::class);
20
+ Livewire::component('export-button', ExportButtonComponent::class);
21
}
22
23
0 commit comments