From c26abcb030410102541eaab4aa40c17c390b9975 Mon Sep 17 00:00:00 2001 From: askdkc Date: Wed, 28 Sep 2022 10:56:22 +0900 Subject: [PATCH] Bug Fix: Not using published views Even after running php artisan vendor:publish --tag="csv-views", this package is not using that published-view because this helper function is not checking if the published view exists. --- src/helpers.php | 4 ++++ 1 file changed, 4 insertions(+) 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; } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy