attributes) && ! empty($this->attributes['homepage'])) { $host = parse_url($this->attributes['homepage'], PHP_URL_HOST); if (file_exists(public_path() . '/assets/profile-images/' . $host . '/image')) { $photo = '/assets/profile-images/' . $host . '/image'; } } return Attribute::make( get: fn () => $photo, ); } }