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