Skip to content

Commit 35412bb

Browse files
committed
Merge branch 'main' of github.com:coderflexx/laravel-csv into main
2 parents 418cefa + b6dcc43 commit 35412bb

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/Http/Livewire/CsvImporter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
namespace Coderflex\LaravelCsv\Http\Livewire;
44

55
use Coderflex\LaravelCsv\Concerns;
6+
use function Coderflex\LaravelCsv\csv_view_path;
67
use Coderflex\LaravelCsv\Jobs\ImportCsv;
78
use Coderflex\LaravelCsv\Utilities\ChunkIterator;
89
use Illuminate\Support\Facades\Bus;
910
use Illuminate\Support\MessageBag;
1011
use Illuminate\Validation\Validator;
1112
use Livewire\Component;
1213
use Livewire\WithFileUploads;
13-
use function Coderflex\LaravelCsv\csv_view_path;
1414

1515
class CsvImporter extends Component
1616
{

src/Http/Livewire/HandleImports.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Coderflex\LaravelCsv\Http\Livewire;
44

5+
use function Coderflex\LaravelCsv\csv_view_path;
56
use Coderflex\LaravelCsv\Models\Import;
67
use Livewire\Component;
7-
use function Coderflex\LaravelCsv\csv_view_path;
88

99
class HandleImports extends Component
1010
{

src/helpers.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
if (! function_exists('Coderflex\LaravelCsv\csv_view_path')) {
66
/**
77
* Get the evaluated view content from the livewire view
8-
*
8+
*
99
* @param string|null $view
1010
* @return string
1111
*/
12-
function csv_view_path($view) {
13-
return 'laravel-csv::livewire.' . config('laravel_csv.layout') . '.' . $view;
12+
function csv_view_path($view)
13+
{
14+
return 'laravel-csv::livewire.'.config('laravel_csv.layout').'.'.$view;
1415
}
15-
}
16+
}

0 commit comments

Comments
 (0)