argument('name'); $fields = $this->argument('fields'); $this->info("Creating module: {$name}"); $this->info("Fields: {$fields}"); Artisan::call('module:make', ['name' => [$name]]); Artisan::call('module:make-migration', ['name' => "create_{$name}_table", '--fields' => $fields, 'module' => $name]); Artisan::call('module:make-model', ['model' => $name, 'module' => $name]); Artisan::call('ninja:make-datatable', ['name' => $name, 'module' => $name]); } protected function getArguments() { return [ ['name', InputArgument::REQUIRED, 'The name of the module.'], ['fields', InputArgument::OPTIONAL, 'The fields of the module.'] ]; } }