Skip to content

Commit 63e726d

Browse files
committed
Move config file
1 parent c060438 commit 63e726d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
File renamed without changes.

src/ToolServiceProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public function boot()
3131
});
3232

3333
$this->publishes([
34-
__DIR__.'/config.php' => config_path('nova-csv-importer.php')
35-
], 'nova-csv-import');
34+
__DIR__.'/../config/csv-import.php' => config_path('csv-import.php')
35+
], 'csv-import');
3636
}
3737

3838
/**
@@ -63,18 +63,18 @@ protected function routes()
6363
*/
6464
public function register()
6565
{
66-
$this->mergeConfigFrom(__DIR__.'/config.php', 'nova-csv-importer');
66+
$this->mergeConfigFrom(__DIR__.'/../config/csv-import.php', 'csv-import');
6767

6868
$this->app->when([UploadController::class, ImportController::class])
6969
->needs(Filesystem::class)
7070
->give(function () {
71-
return Storage::disk(config('nova-csv-import.disk'));
71+
return Storage::disk(config('csv-import.disk'));
7272
});
7373

7474
$this->app->when([UploadController::class, ImportController::class])
7575
->needs(ModelImporter::class)
7676
->give(function () {
77-
$class = $this->app['config']->get('nova-csv-importer.importer');
77+
$class = $this->app['config']->get('csv-importer.importer');
7878

7979
$importable = \Maatwebsite\Excel\Concerns\Importable::class;
8080

0 commit comments

Comments
 (0)