PlannrCrm / laravel-fast-refresh-database

🚀 Refresh your test databases faster than you've ever seen before
MIT License
415 stars 18 forks source link

FastRefreshDatabase does not respect `loadMigrationsFrom` method from ServiceProvider #17

Open webard opened 9 months ago

webard commented 9 months ago

https://github.com/PlannrCrm/laravel-fast-refresh-database/blob/f5055bd4406ea896be77530e9c0e61c47ea2d42d/src/Traits/FastRefreshDatabase.php#L54

Here is hardcoded path to database/migrations, but in ServiceProvider is method loadMigrationsFrom to set own database migrations path. For example, https://github.com/nWidart/laravel-modules package use this method to handle migrations in modules.

nick-potts commented 8 months ago

Also having this issue

webard commented 8 months ago

PR https://github.com/PlannrCrm/laravel-fast-refresh-database/pull/10 looks to resolve this issue, waiting for merge.