/** * Execute this command. * * @return int|void */ protected function doExecute() { $name = $this->getArgument(0); if (!$name) { throw new \Exception('Please enter a profile name.'); } $model = new ProfileModel(); $model->add($name); $this->out()->out(sprintf("Profile \"%s\" created.", $name)); return true; }