ask('Email'); $password = $this->secret('Password'); $password_confirmation = $this->secret('Confirm Password'); if ($password !== $password_confirmation) { return $this->error('The passwords provided did not match!'); } $admin = $this->confirm('Is this user a root administrator?'); try { $user = new UserRepository; $user->create($email, $password, $admin); return $this->info('User successfully created.'); } catch (\Exception $ex) { return $this->error($ex->getMessage()); } } }