/** * Get the role id * @return string $role_id */ public function getRoleId() { $roles = Role::all(); $roleData = $this->buildRoleTable($roles); $this->table(['id', 'role'], $roleData); $role_id = $this->ask('Which role would you like to assign to the user? [1,2,...]'); return $role_id; }