Skip to content

[7.x] Don't overwrite published stub files by default - #32038

Merged
taylorotwell merged 1 commit into
laravel:7.xfrom
misenhower:stub-publish-overwrite
Mar 20, 2020
Merged

[7.x] Don't overwrite published stub files by default#32038
taylorotwell merged 1 commit into
laravel:7.xfrom
misenhower:stub-publish-overwrite

Conversation

@misenhower

Copy link
Copy Markdown
Contributor

This change modifies the stub:publish command so that it won't overwrite stub files that have already been published to the application. This aligns its behavior with the vendor:publish command.

This is useful when someone needs to re-publish the stub files later. For example, if they only want to keep the stub files they've modified in their application's stubs directory, or if new stub files are added later on.

You can still overwrite existing stub files by passing the --force flag.

@taylorotwell
taylorotwell merged commit fc72e94 into laravel:7.x Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants