/** * Replace the class name for the given stub. * * @param string $stub * @param string $name * * @return mixed */ protected function replaceClass($stub, $name) { $stub = parent::replaceClass($stub, $name); return str_replace('DummyDatetime', Carbon::now()->toDateTimeString(), $stub); }
/** * Get the console command arguments. * * @return array */ protected function getArguments() { return array_merge(parent::getArguments(), [['module', InputArgument::OPTIONAL, 'The name of module will be used.']]); }