Skip to content

Commit 3b9f8f4

Browse files
author
Cristian Giordano
committed
Use application for database migrations path
1 parent 29f33e9 commit 3b9f8f4

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__, 5) . '/database/migrations/';
26+
$migrations_folder = $app->databasePath('migrations/');
2727

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

0 commit comments

Comments
 (0)