Let $A$ be a ring and $\mathcal{m}$ a maximal ideal of $A$, such that every element of $1+\mathcal{m}$ is a unit in $A$. Then $A$ is a local ring.
Let $x\in A\setminus\mathcal{m}$ (It is not the quotient ring, but $A$ setminus $\mathcal{m}$). Since $m$ is maximal, the ideal generated by $x$ and $\mathcal{m}$ is $A=(1)$, that is $$(1)=(m,\{x\})$$
Edit $(m,\{x\})$ denotes the ideal generated by $\mathcal{m}$ and $x$.
Question. Why there exist $y\in A$ and $t\in\mathcal{m}$ such that $xy+t=1$?