diff --git a/resources/views/livewire/grid.blade.php b/resources/views/grid.blade.php similarity index 100% rename from resources/views/livewire/grid.blade.php rename to resources/views/grid.blade.php diff --git a/src/Livewire/BaseGrid.php b/src/Livewire/BaseGrid.php index 0e2980e..8f8ccdb 100644 --- a/src/Livewire/BaseGrid.php +++ b/src/Livewire/BaseGrid.php @@ -111,7 +111,7 @@ public function render(): View ); } - return view('livewire.grid', [ + return view('laragrid::grid', [ 'records' => $query->paginate($this->perPage), 'columns' => $columns, 'theme' => $this->theme, diff --git a/src/Providers/LaraGridServiceProvider.php b/src/Providers/LaraGridServiceProvider.php index f853e69..5c44657 100644 --- a/src/Providers/LaraGridServiceProvider.php +++ b/src/Providers/LaraGridServiceProvider.php @@ -14,6 +14,7 @@ public function register(): void public function boot(): void { + $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'laragrid'); } }