From 63e726dc5106ae56efbab4ab40300eaed20c0cd7 Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Sun, 24 Apr 2022 18:16:57 +0100 Subject: [PATCH] Move config file --- src/config.php => config/csv-import.php | 0 src/ToolServiceProvider.php | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/config.php => config/csv-import.php (100%) diff --git a/src/config.php b/config/csv-import.php similarity index 100% rename from src/config.php rename to config/csv-import.php diff --git a/src/ToolServiceProvider.php b/src/ToolServiceProvider.php index f8c4592..3d5fc83 100644 --- a/src/ToolServiceProvider.php +++ b/src/ToolServiceProvider.php @@ -31,8 +31,8 @@ public function boot() }); $this->publishes([ - __DIR__.'/config.php' => config_path('nova-csv-importer.php') - ], 'nova-csv-import'); + __DIR__.'/../config/csv-import.php' => config_path('csv-import.php') + ], 'csv-import'); } /** @@ -63,18 +63,18 @@ protected function routes() */ public function register() { - $this->mergeConfigFrom(__DIR__.'/config.php', 'nova-csv-importer'); + $this->mergeConfigFrom(__DIR__.'/../config/csv-import.php', 'csv-import'); $this->app->when([UploadController::class, ImportController::class]) ->needs(Filesystem::class) ->give(function () { - return Storage::disk(config('nova-csv-import.disk')); + return Storage::disk(config('csv-import.disk')); }); $this->app->when([UploadController::class, ImportController::class]) ->needs(ModelImporter::class) ->give(function () { - $class = $this->app['config']->get('nova-csv-importer.importer'); + $class = $this->app['config']->get('csv-importer.importer'); $importable = \Maatwebsite\Excel\Concerns\Importable::class;