diff --git a/src/Commands/MigrationMakeCommand.php b/src/Commands/MigrationMakeCommand.php
index 7e3bb6f..40b35ba 100644
--- a/src/Commands/MigrationMakeCommand.php
+++ b/src/Commands/MigrationMakeCommand.php
@@ -41,19 +41,18 @@ class MigrationMakeCommand extends SymfonyCommand
/**
* Execute the console command.
- *
- * @return void
*/
public function handle()
{
$service = $this->argument('service');
$migration = $this->argument('migration');
- $path = $this->findServicePath($service) . "/database/migrations";
+ $path = $this->relativeFromReal($this->findServicePath($service) . "/database/migrations");
- Artisan::call('make:migration', ['name' => $migration, '--path' => $path]);
+ $output = shell_exec('php artisan make:migration '.$migration.' --path='.$path);
- $this->info('Migration class created successfully.' . "\n" . "\n" . 'Find it at ' . $path . '' . "\n");
+ $this->info($output);
+ $this->info("\n".'Find it at '.$path.''."\n");
}
/**