As DMGregory commented, your model_matrix and view_matrix are in wrong order in your shader code. If you look at the tutorial's shader code, you'll see your mistake.
I really liked this tutorial about matrices. It simply explains how the order of transformations and rotations should be. There is also couple great general explanations about how graphics pipeline works in computerphile's channel on youtube, including information about matrices.
