Effect of spatial dependence in the single-mode laser rate equations