diff --git a/src/Commands/stubs/scaffold/provider.stub b/src/Commands/stubs/scaffold/provider.stub index 0a6e9a8a..c451e30a 100644 --- a/src/Commands/stubs/scaffold/provider.stub +++ b/src/Commands/stubs/scaffold/provider.stub @@ -90,7 +90,7 @@ class $CLASS$ extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_disable__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_disable__1.txt index 502378c6..7ad790eb 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_disable__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_disable__1.txt @@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_enable__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_enable__1.txt index fd27431f..1823f4c3 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_enable__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generate_module_when_provider_is_enable_and_route_provider_is_enable__1.txt @@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_module_with_resources__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_module_with_resources__1.txt index fd27431f..1823f4c3 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_module_with_resources__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_module_with_resources__1.txt @@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_namespace_using_studly_case__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_namespace_using_studly_case__1.txt index 624b86d2..d0f0fa75 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_namespace_using_studly_case__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_namespace_using_studly_case__1.txt @@ -90,7 +90,7 @@ class ModuleNameServiceProvider extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__1.txt index fd27431f..1823f4c3 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_module_resources__1.txt @@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__1.txt index fd27431f..1823f4c3 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources__1.txt @@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } } diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__1.txt index fd27431f..1823f4c3 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_module_with_resources_when_adding_more_than_one_option__1.txt @@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } } diff --git a/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_change_the_default_namespace__1.txt b/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_change_the_default_namespace__1.txt index e13cd1f6..7a1ebd09 100644 --- a/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_change_the_default_namespace__1.txt +++ b/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_change_the_default_namespace__1.txt @@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } } diff --git a/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt b/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt index e13cd1f6..7a1ebd09 100644 --- a/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt +++ b/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_change_the_default_namespace_specific__1.txt @@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } } diff --git a/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_have_custom_migration_resources_location_paths__1.txt b/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_have_custom_migration_resources_location_paths__1.txt index 705d88db..ed70db0e 100644 --- a/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_have_custom_migration_resources_location_paths__1.txt +++ b/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_can_have_custom_migration_resources_location_paths__1.txt @@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } } diff --git a/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_generates_a_master_service_provider_with_resource_loading__1.txt b/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_generates_a_master_service_provider_with_resource_loading__1.txt index fd27431f..1823f4c3 100644 --- a/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_generates_a_master_service_provider_with_resource_loading__1.txt +++ b/tests/Commands/Make/__snapshots__/ProviderMakeCommandTest__test_it_generates_a_master_service_provider_with_resource_loading__1.txt @@ -90,7 +90,7 @@ class BlogServiceProvider extends ServiceProvider $configKey = $this->nameLower . '.' . str_replace([DIRECTORY_SEPARATOR, '.php'], ['.', ''], $relativePath); $key = ($relativePath === 'config.php') ? $this->nameLower : $configKey; - $this->publishes([$file->getPathname() => config_path($relativePath)], $configPath); + $this->publishes([$file->getPathname() => config_path($relativePath)], 'config'); $this->mergeConfigFrom($file->getPathname(), $key); } }