entityGenerator = $entityGenerator; } /** * Execute the console command. * * @return void */ public function handle(): void { $this->entityGenerator ->module($this->argument('module')) ->generate([$this->argument('entity')], false); $this->info('Entity generated.'); } /** * Get the console command arguments. * * @return array */ protected function getArguments(): array { return [ ['entity', InputArgument::REQUIRED, 'The name of the entity.'], ['module', InputArgument::REQUIRED, 'The name of module will be used.'], ]; } }