Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sh1r3f's avatar

Can I disable auto migrating for a specific package?

I'm building a package that is dependant to another package.. That other package auto migrates its migrations when php artisan migrate runs.. I don't want that to happen as I'm copying its migration and moving it to another directory so What can I do "from my package" to disable the auto migration for that other package?

0 likes
11 replies
Sinnbeck's avatar

Which package? Maybe the package allows it

sh1r3f's avatar

@Sinnbeck "outl1ne/nova-settings" package.. and nothing in theirs docs saying I can disable it..

sh1r3f's avatar

@Sinnbeck I don't wanna change structure of their table but I wanna move their migrations into my tenants migrations. u get my point? I can hard copy their migrations into my tenant and drop their migrations after migrating but this will fail on the first update

sh1r3f's avatar

@martinbean yes and that what I did.. I published them and moved them to my tenant migration folder.. now How can I disable the auto migration?

sh1r3f's avatar

or at least make them migrate in tenants not central app

sh1r3f's avatar

@martinbean huh? my tenants are normal mysql databases that migrates what inside a "tenant" folder

agustinzamar's avatar

Hey, I'm facing the same problem, I see people dont actually understood the issue. Did you find a solution?

Please or to participate in this conversation.