input->getOption('class') ?? 'Database\Seeds\Company'; $class = $this->laravel->make($class_name); $class->setContainer($this->laravel)->setCommand($this)->__invoke(); } /** * Get the console command options. * * @return array */ protected function getOptions() { return [ ['class', null, InputOption::VALUE_OPTIONAL, 'The class name of the root seeder', 'Database\Seeds\Company'], ]; } }