/** * @inheritdoc */ protected function getPath($name) { $optionsPath = $this->option('path'); if ($optionsPath !== null) { return join('/', [$this->laravel->basePath(), trim($optionsPath, '/'), $this->getNameInput() . '.php']); } return parent::getPath($name); }
/** * Get the destination class path. * * @param string $name * @return string */ protected function getPath($name) { $path = parent::getPath($name); return str_replace(['app/Http', '.php'], ['tests/App/Http', 'Test.php'], $path); }
/** * Get the destination class path. * * @param string $name * @return string */ protected function getPath($name) { return parent::getPath($name . 'Handler'); }
/** * Get the destination class path. * * @param string $name * @return string */ protected function getPath($name) { return parent::getPath($name . 'Command'); }