$server->id, ]); }); } public $casts = [ 'extra_attributes' => SchemalessAttributes::class, ]; public function scopeWithExtraAttributes(): Builder { return $this->extra_attributes->modelScope(); } public function privateKey() { return $this->belongsTo(PrivateKey::class); } public function settings() { return $this->hasOne(ServerSetting::class); } }