Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 7e52924

Browse files
committed
fix make:migration command
1 parent 1937241 commit 7e52924

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Commands/MigrationMakeCommand.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,18 @@ class MigrationMakeCommand extends SymfonyCommand
4141

4242
/**
4343
* Execute the console command.
44-
*
45-
* @return void
4644
*/
4745
public function handle()
4846
{
4947
$service = $this->argument('service');
5048
$migration = $this->argument('migration');
5149

52-
$path = $this->findServicePath($service) . "/database/migrations";
50+
$path = $this->relativeFromReal($this->findServicePath($service) . "/database/migrations");
5351

54-
Artisan::call('make:migration', ['name' => $migration, '--path' => $path]);
52+
$output = shell_exec('php artisan make:migration '.$migration.' --path='.$path);
5553

56-
$this->info('Migration class created successfully.' . "\n" . "\n" . 'Find it at <comment>' . $path . '</comment>' . "\n");
54+
$this->info($output);
55+
$this->info("\n".'Find it at <comment>'.$path.'</comment>'."\n");
5756
}
5857

5958
/**

0 commit comments

Comments
 (0)