/** * Get the destination class path. * * @param string $name * @return string */ protected function getPath($name) { if ($this->module) { return $this->module->getExtraPath('Database/Seeders/' . $name . '.php'); } return $this->laravel->databasePath() . '/seeds/' . $name . '.php'; }
/** * Get migration path (either specified by '--path' option or default location). * * @return string */ protected function getMigrationPath() { if (!is_null($targetPath = $this->input->getOption('path'))) { return $this->laravel->basePath() . '/' . $targetPath; } if ($this->module) { return $this->module->getExtraPath('Database/Migrations'); } return parent::getMigrationPath(); }