/** * Execute the console command. * * @return mixed */ public function handle() { $return = $this->larinterface->generate($this->argument('class'), $this->argument('output'), $this->argument('output_file'), $this->argument('input_file'), $this->argument('namespace'), $this->argument('name')); if (!is_array($return)) { $return = ['code' => $return]; } echo json_encode($return); }