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 62ad8cc commit db110e1Copy full SHA for db110e1
src/ExportServiceProvider.php
@@ -3,7 +3,6 @@
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 +15,9 @@ public function boot(): void
16
15
17
$this->publishAssets();
18
19
- Livewire::component('export-button', ExportButtonComponent::class);
+ if (! $this->app->runningInConsole()) {
+ app('livewire')->component('export-button', ExportButtonComponent::class);
20
+ }
21
}
22
23
protected function publishAssets(): void
0 commit comments