Skip to content

Commit 401856a

Browse files
authored
Merge pull request #188 from CristianGiordano/fix-database-migrations-path
Fix database migrations path
2 parents 5196f8f + 3b9f8f4 commit 401856a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/ModelStubProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class ModelStubProvider implements GeneratesStubs
2323
public static function generateStubFile(): void
2424
{
2525
$app = ApplicationProvider::getApp();
26-
$migrations_folder = dirname(__DIR__, 4) . '/database/migrations/';
26+
$migrations_folder = $app->databasePath('migrations/');
2727

2828
$project_analyzer = ProjectAnalyzer::getInstance();
2929
$codebase = $project_analyzer->getCodebase();

0 commit comments

Comments
 (0)