I'm newbie in openGL.
I'v searched for an examples from google, stackoverflow and opengl.org but I don't found an exactly result yet.

My issue is
1. I'v rotated a box in x axis by 45 degrees, the result is OK.
2. I'v rotated same box in y axis by 45 degrees, the result is weird.
It's not rotated in global y axis as my expect but rotated in own y axis.

How should I do? Are there any examples?

This is my code

Code :
model = glm::rotate(model, glm::radians(45.0f), glm::vec3(1.0, 0.0, 0.0));
model = glm::rotate(model, glm::radians(45.0f), glm::vec3(0.0, 1.0, 0.0));
myShader.setMat4("model", model);