Add all files
This commit is contained in:
25
extensions/Servers/Proxmox/Models/Location.php
Normal file
25
extensions/Servers/Proxmox/Models/Location.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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',
|
||||
];
|
||||
|
||||
public function nodes()
|
||||
{
|
||||
return $this->hasMany(Node::class, 'location_id');
|
||||
}
|
||||
|
||||
public function os()
|
||||
{
|
||||
return $this->hasMany(OS::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user