I did, but he is autistic, there were days where i used to take him there, still in his pjs with his uniform in his bag.
Might not have been the right course of action, but i more or less gave him no choice, even if it meant physically picking him up and carrying him to the car.
Yes there were days when i would give him a 'mental health' day if he had a meltdown, but i also made it clear that not going was not an option and he either got dressed, or went in wearing his pjs and got dressed there. I acknowledged his upset, validated his feelings, expressed how we all had to do stuff we didn't want to do, but still had to do it, gave him space to cry, but never gave in to the tears and refusals.
Usually i'd tell him to get up, have breakfast, and then we'd talk about it.. but i had to take DD to school (we always had to drive, i'm disabled) so he had to come with us anyway because i wouldn't let him make DD late.. generally by the time we were walking into school with DD i'd just drag him to reception and hand him over to his TA.
It was all discussed with the school, things were in place AT school to help him. He had therapy, a load of sensory stuff, ear defenders, sensory chews, a stuffed toy to carry, fidget toys and access to a calm room to take time out (and usually where he started his day). Sometimes i'd pick him up early, sometimes he'd survive the whole day.
It stopped when he went to special school in year 7. It was 100% down to environment.. he couldn't handle the noise, visual and auditory. He didn't miss a single day (unless ill) from then on.
How much have you talked to the school about it? Have they offered any help, or assessments, or access to counselling? Have you considered moving schools or home schooling?