'encrypted', 'ssl_private_key' => 'encrypted', 'subject_alternative_names' => 'array', 'valid_until' => 'datetime', ]; public function application() { return $this->morphTo('resource'); } public function service() { return $this->morphTo('resource'); } public function database() { return $this->morphTo('resource'); } public function server() { return $this->belongsTo(Server::class); } /** * Whether the database reads its certificate and key from one combined server.pem file * instead of separate server.crt and server.key files. */ public function requiresPemKeyFile(): bool { return $this->resource_type === StandaloneMongodb::class; } }