/** * @return string */ protected function getMigrationPath() { if (!is_null($targetPath = $this->input->getOption('path'))) { return $this->notadd->basePath() . '/' . $targetPath; } return parent::getMigrationPath(); }
/** * StatusCommand constructor. * @param \Notadd\Foundation\Database\Migrations\Migrator $migrator */ public function __construct(Migrator $migrator) { parent::__construct(); $this->migrator = $migrator; }