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

Commit

Permalink
fix make:migration command
Browse files Browse the repository at this point in the history
  • Loading branch information
Mulkave committed May 16, 2018
1 parent 1937241 commit 7e52924
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Commands/MigrationMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <comment>' . $path . '</comment>' . "\n");
$this->info($output);
$this->info("\n".'Find it at <comment>'.$path.'</comment>'."\n");
}

/**
Expand Down

0 comments on commit 7e52924

Please sign in to comment.