Assalamu alaikum. Are there rulings on a middle name? I read the rulings for the first name + the last name being the father's last name. I have not found info about the middle name. Can it follow same rulings as first name or are there separate rulings? Ex: Hanifah (1st) Rayya (Middle) Khan (Last)

Ustadh AbdulAziz al-Haqqan
Middle name is father, last name is family.