'int', 'old_node' => 'int', 'new_node' => 'int', 'old_allocation' => 'int', 'new_allocation' => 'int', 'old_additional_allocations' => 'string', 'new_additional_allocations' => 'string', 'successful' => 'bool', ]; /** * @var array */ public static $validationRules = [ 'server_id' => 'required|numeric|exists:servers,id', 'old_node' => 'required|numeric', 'new_node' => 'required|numeric', 'old_allocation' => 'required|numeric', 'new_allocation' => 'required|numeric', 'old_additional_allocations' => 'nullable', 'new_additional_allocations' => 'nullable', 'successful' => 'sometimes|boolean', ]; /** * Gets the server associated with a server transfer. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function server() { return $this->belongsTo(Server::class); } }