It is always an integer. A standard "brute force" approach is simply to show that each factor of 24 divides the expression in the numerator. This is equivalent to showing that 3 and 8 both divide it in all cases.
The case of the factor 3 splits into two sub cases: one where m is divisible by 3 and one where it is not. If m is divisible by 3 then clearly the numerator is also divisible by 3 and we are done. If m is not divisible by 3, we use the fact that $m^2\equiv 1 \mod 3$ to get $m^6+3m^4+12m^3+8m^2\equiv 1+8\equiv 9\equiv 0\mod 3$ and we are done.
Now we need to prove that 8 divides the expression. We factor it as $m^2(m^4+3m^2+12m+8)$. Clearly there are two subcases: m is either even or odd. If m is even the two factors in the previous factorized form are even, and further, the first factor is a square meaning divisible by 4, hence the two factors together are divisible by 8 and we are done. If m is odd, we can forget the $m^2$ factor since it is odd. We focus on showing that $m^4+3m^2+12m+8\equiv m^4+3m^2+4m\mod 8$ is in fact $0\mod 8$. Here I simply did case work on $m\equiv \{1,3,5\}\mod 8$ (since m is odd) since it isn't too much casework.