*/ protected $aliases = ['config:make']; /** * Get the destination file path. * * @param string $name */ protected function getPath($name): string { return config_path(Str::finish($this->argument('name'), '.php')); } /** * Get the stub file for the generator. */ protected function getStub(): string { $relativePath = join_paths('stubs', 'config.stub'); return file_exists($customPath = $this->laravel->basePath($relativePath)) ? $customPath : join_paths(__DIR__, $relativePath); } /** * Get the console command arguments. */ protected function getOptions(): array { return [ ['force', 'f', InputOption::VALUE_NONE, 'Create the configuration file even if it already exists'], ]; } /** * Prompt for missing input arguments using the returned questions. * * @return array */ protected function promptForMissingArgumentsUsing() { return [ 'name' => 'What should the configuration file be named?', ]; } }