belongsTo(Shop::class, 'shop_id', 'id'); } public function getIndividualUrlAttribute() { if (!$this->individual) { return $this->individual; } return Helps::fullUrl($this->individual); } public function getBusinessDoorUrlAttribute() { if (!$this->business_door) { return $this->business_door; } return Helps::fullUrl($this->business_door); } public function getSaleProxyUrlAttribute() { if (!$this->sale_proxy) { return $this->sale_proxy; } return Helps::fullUrl($this->sale_proxy); } public function getSaleProxyHandUrlAttribute() { if (!$this->sale_proxy_hand) { return $this->sale_proxy_hand; } return Helps::fullUrl($this->sale_proxy_hand); } public function getIdentityProsUrlAttribute() { if (!$this->identity_pros) { return $this->identity_pros; } return Helps::fullUrl($this->identity_pros); } public function getIdentityConsUrlAttribute() { if (!$this->identity_cons) { return $this->identity_cons; } return Helps::fullUrl($this->identity_cons); } public function getIdentityHandUrlAttribute() { if (!$this->identity_hand) { return $this->identity_hand; } return Helps::fullUrl($this->identity_hand); } }