File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 3
3
namespace Coderflex \LaravelCsv \Http \Livewire ;
4
4
5
5
use Coderflex \LaravelCsv \Concerns ;
6
+ use function Coderflex \LaravelCsv \csv_view_path ;
6
7
use Coderflex \LaravelCsv \Jobs \ImportCsv ;
7
8
use Coderflex \LaravelCsv \Utilities \ChunkIterator ;
8
9
use Illuminate \Support \Facades \Bus ;
9
10
use Illuminate \Support \MessageBag ;
10
11
use Illuminate \Validation \Validator ;
11
12
use Livewire \Component ;
12
13
use Livewire \WithFileUploads ;
13
- use function Coderflex \LaravelCsv \csv_view_path ;
14
14
15
15
class CsvImporter extends Component
16
16
{
Original file line number Diff line number Diff line change 2
2
3
3
namespace Coderflex \LaravelCsv \Http \Livewire ;
4
4
5
+ use function Coderflex \LaravelCsv \csv_view_path ;
5
6
use Coderflex \LaravelCsv \Models \Import ;
6
7
use Livewire \Component ;
7
- use function Coderflex \LaravelCsv \csv_view_path ;
8
8
9
9
class HandleImports extends Component
10
10
{
Original file line number Diff line number Diff line change 5
5
if (! function_exists ('Coderflex\LaravelCsv\csv_view_path ' )) {
6
6
/**
7
7
* Get the evaluated view content from the livewire view
8
- *
8
+ *
9
9
* @param string|null $view
10
10
* @return string
11
11
*/
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 ;
14
15
}
15
- }
16
+ }
You can’t perform that action at this time.
0 commit comments