- Change listStates method to accept nullable integer for limit parameter. - Modify TechnitiumDns class to return structured error messages on failure. - Enhance VNC and xterm popup routes with user authorization checks. - Update backups view to improve loading states and add unique keys for dynamic elements. - Refactor cloud-init view to ensure proper data binding and improve user experience. - Add wire:key attributes to various elements in views for better Livewire performance. - Improve error handling and user feedback in the firewall view. - Update server overview and statistics views to handle potential null values gracefully. - Add new migration files to extend database schema with user-set icons and notes for Proxmox nodes.
27 lines
474 B
PHP
27 lines
474 B
PHP
<?php
|
|
|
|
namespace Paymenter\Extensions\Servers\Proxmox\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Location extends Model
|
|
{
|
|
protected $table = 'ext_proxmox_locations';
|
|
|
|
protected $fillable = [
|
|
// Shows to customer
|
|
'name',
|
|
'server_placement',
|
|
];
|
|
|
|
public function nodes()
|
|
{
|
|
return $this->hasMany(Node::class, 'location_id');
|
|
}
|
|
|
|
public function os()
|
|
{
|
|
return $this->hasMany(OS::class);
|
|
}
|
|
}
|