Skip to content

Commit 548fa35

Browse files
committedJan 11, 2025
feat:
add database dri for migrations with capital d and fix bugs.
1 parent c852dcd commit 548fa35

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎src/Console/AppMaker.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ private function createModel()
120120

121121
private function createMigration()
122122
{
123-
(new Filesystem())->ensureDirectoryExists($this->appPath . '/database/migrations');
124-
Artisan::call("make:migration $this->appName --path=/modules/$this->appName/database/migrations");
123+
(new Filesystem())->ensureDirectoryExists($this->appPath . '/Database/migrations');
124+
Artisan::call("make:migration $this->appName --path=/modules/$this->appName/Database/migrations");
125125
}
126126

127127
private function createController()

‎src/Console/AppMakerCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private function addModel()
112112

113113
private function addMigrations()
114114
{
115-
Artisan::call("make:migration $this->fileName --path=/modules/$this->appName/database/migrations");
115+
Artisan::call("make:migration $this->fileName --path=/modules/$this->appName/Database/migrations");
116116
$this->info('Successfully Created');
117117
}
118118

‎stubs/app/Provider/ExampleProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function register()
2525
public function boot()
2626
{
2727
$this->routeMap();
28-
$this->loadMigrationsFrom(base_path('AppPath/migrations'));
28+
$this->loadMigrationsFrom(base_path('AppPath/Database/migrations'));
2929
$this->loadViewsFrom(base_path('AppPath/resources'),'Example');
3030
}
3131

0 commit comments

Comments
 (0)
Please sign in to comment.