Use Artisan's publish features to make copying migrations an easier process. #174
+28
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rather than copying and pasting the migration file (and therefore having to worry about class names clashing), I updated the package to include a service provider that registers the migration as a publishable asset and updated the readme to include instructions on how to register the service provider and publish the migration files.
I hate to introduce more steps into the installation process of the package, but most other Laravel packages have a service provider so it's almost an expectation from me that when I'm installing a package, I'm going to need to configure a service provider. I like to consider it forward thinking, because one day this package might need to utilize a service provider, and it's better to tell them to configure the service provider now rather than in the future.
I'd also like to emphasize that if users opt not to use the service provider, it won't break the functionality of the package. Therefore those updating to the latest code won't need to figure out why their site has stopped working (and also negating the need for a major version bump).