'integer', 'variable_id' => 'integer', ]; public static array $validationRules = [ 'server_id' => 'required|int', 'variable_id' => 'required|int', 'variable_value' => 'string', ]; /** * Returns the server this variable is associated with. */ public function server(): BelongsTo { return $this->belongsTo(Server::class); } /** * Returns information about a given variables parent. */ public function variable(): BelongsTo { return $this->belongsTo(EggVariable::class, 'variable_id'); } }