diff --git a/src/helpers.php b/src/helpers.php index 8cdb1d9..f1fbe4f 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -11,6 +11,10 @@ */ function csv_view_path(string|null $view): string { + if(file_exists(__DIR__ . '/../../../../resources/views/vendor/csv/livewire/'.config('laravel_csv.layout'))) + { + return 'vendor/csv/livewire/.'.config('laravel_csv.layout').'.'.$view; + } return 'laravel-csv::livewire.'.config('laravel_csv.layout').'.'.$view; } }