php - Can I ignore specific migrations when running Laravel unit tests
one text
Solution:
You can wrap your up() & down() functions with such condition.
if (app()->runningUnitTests()) {
// your function content
}
Sourceone text
You can wrap your up() & down() functions with such condition.
if (app()->runningUnitTests()) {
// your function content
}
Source