I will compute the determinant of the matrix
$$
A = \left(
\begin {matrix}
b & a & \ldots & a \\
a & b & \ddots & \vdots \\
\vdots & \ddots & \ddots & a \\
a & \cdots & a & b
\end {matrix}
\right),
$$
where $a, b \in \mathbb{K}$. To obtain your case, put $a=1$ and $b=0$.
First proof. This works if $\mathrm{char}(\mathbb{K}) = 0$ or $n$ is prime to $\mathrm{char}(\mathbb{K}) > 0$. If $a =0$, then $\det A = b^n$. Suppose $a \neq 0$ and consider the vector $v = (1, \dots, 1) \in \mathbb{K}^n$; it is clear that $v$ is an eigenvector of $A$ with eigenvalue $\alpha = (n-1) a + b$. Now consider $\beta = b-a$. $\beta$ is an eigenvalue of $A$ because
$$
B = A - \beta I_n = \left(
\begin {matrix}
a & a & \ldots & a \\
a & a & \ldots & a \\
\vdots & \vdots & \ddots & \vdots \\
a & a & ... & a
\end {matrix}
\right)
$$
has rank $1$.
Let $E_\alpha, E_\beta \subseteq \mathbb{K}^n$ the eigenspaces of $A$ of the eigenvalues $\alpha, \beta$. We have $\alpha \neq \beta$, $E_\alpha \cap E_\beta = \{ 0 \}$ and $\dim E_\beta = n-1$, thus $\mathbb{K}^n = E_\alpha \oplus E_\beta$ and $E_\alpha = \langle v \rangle$. This proves that $A$ is similar to the matrix $\mathrm{diag}(\alpha, \beta, \dots, \beta)$, therefore $\det A = \alpha \beta^{n-1} = [(n-1)a +b] (b-a)^{n-1}$. (Notice that this formula holds also when $a=0$.)
Second proof. The characteristic polynomial of the matrix $B = A - (b-a) I$ is
$$
\chi_B(t) = (-t)^n + c_{n-1} (-t)^{n-1} + \cdots + c_1(-t) + c_0,
$$
where $c_i$ is the sum of the principal $(n-i)$-minors of $B$. It is clear that all principal minors of $B$ are zero, except on $1$-minors. Thus
$$
\chi_B(t) = (-t)^n + na (-t)^{n-1}.
$$
From $A = B + (b-a) I$, we have $\chi_A(t) = \chi_B(t-b+a)$. Thus $\det A = \chi_A(0) = \chi_B(a-b) = (b-a)^n + na (b-a)^{n-1}$.
Now consider the matrix
$$
C = \left(
\begin {matrix}
a & a & \ldots & a \\
a & b & \ddots & \vdots \\
\vdots & \ddots & \ddots & a \\
a & \cdots & a & b
\end {matrix}
\right).
$$
For every $i=2,\dots,n$, replace the $i$th row $C_i$ of $C$ with $C_i - C_1$, where $C_1$ is the first row of $C$. Obtain
$$
\det C = \det \left(
\begin{matrix}
a & a & a & \cdots & a \\
0 & b-a & 0 & \cdots & 0 \\
0 & 0 & b-a & \ddots & 0 \\
\vdots & \vdots & \ddots & \ddots & 0 \\
0 & 0 & \cdots & 0 & b-a
\end{matrix}
\right) = a (b-a)^{n-1}.
$$