Skip to content

Config publish command only publishes first module and skips others #2122

@RezaZkr

Description

@RezaZkr

Versions:

  • laravel-modules Version:12
  • Laravel Version:12
  • PHP Version: 8.2

Description:

I’m using Laravel 12 and the latest version of nwidart/laravel-modules (v12).
After a fresh Laravel installation (no configuration changes to the package),
I created three modules (A, B, and C).
Then I ran the following command:

php artisan module:publish-config

and then select the option All,
only the first module’s config file is published successfully,
and all other modules are skipped with the following message:

File [ProjectPath\config\config.php] already exists

Steps to reproduce

Fresh install of Laravel 12

Install nwidart/laravel-modules (latest v12 no configuration changes)

Create a few modules:

php artisan module:make A
php artisan module:make B
php artisan module:make C

php artisan module:publish-config

→ Choose All

Image

and published config

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions