EntityType::class, ]; protected $appends = [ 'logo_url', ]; protected function logoUrl(): Attribute { return Attribute::get(static function (mixed $value, array $attributes): ?string { if ($attributes['logo']) { return Storage::disk('public')->url($attributes['logo']); } return null; }); } public function address(): MorphOne { return $this->morphOne(Address::class, 'addressable'); } protected static function newFactory(): Factory { return CompanyProfileFactory::new(); } }