$server->id, ]); }); } protected $fillable = [ 'name', 'ip', 'user', 'port', 'team_id', 'private_key_id', ]; public function destinations() { return $this->hasMany(PrivateKey::class); } public function privateKey() { return $this->belongsTo(PrivateKey::class); } public function settings() { return $this->hasOne(ServerSetting::class); } }