at first, I just deleted all the properties of protected $appends, but later I found that I could still get the deleted attributes. I found that there was an accessor when I saw the Eloquent serialization chapter in the manual, so I deleted the accessor together and I couldn"t get the attributes.
is it so magical?
for example:
protected $appends = [
"username",
];
public function getUsernameAttribute () {
return" Xiaoming";
}
so that you can add additional username attributes when getting the model attribute, but it seems that if I delete $appends, this username can still be obtained, is that so