AH
Size: a a a
AH
🎃
AH
AH
С
T
// Model B
public function getCostAttribute() {
return $this->modelA->sum('cost');
}
// Model a
public function getCostAttribute() {
return $this->modelB->sum('cost');
}
$cost = $modelA->cost;
D
// Model B
public function getCostAttribute() {
return $this->modelA->sum('cost');
}
// Model a
public function getCostAttribute() {
return $this->modelB->sum('cost');
}
$cost = $modelA->cost;
D
D
D
T
T
T
T
T
D
T
T
SV
T