belongsTo(User::class)->withDefault(); } protected function getTypeTextAttribute() { return $this->status == 'alliance' ? "่”็›Ÿ" : "ไปฃ็†"; } }