Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle relative path in migration file exists check #127

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

mvenghaus
Copy link
Contributor

Hey there,

I'm using your laravel settings package for my own ones. Therefore I have a settings migration file in database/settings.

Now I try to publish these settings like this:

->hasMigrations([
    '../settings/create_mail_settings'
])

First publish works without a problem. But if I run it again it copies the file again because only the migrations path is checked for the file. So I changed the code to resolve the path using the given publish file.

@freekmurze freekmurze merged commit 59db18c into spatie:main Mar 7, 2024
21 checks passed
@freekmurze
Copy link
Member

Thanks!

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