Files
portal-api/app/Models/Hosting.php
T
2025-07-24 16:18:27 +07:00

41 lines
697 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Hosting extends Model
{
use HasFactory;
protected $table = 'hosting';
protected $fillable = [
'name',
'price',
'price_sale',
'description',
'template',
'group_id',
'type_id',
'status',
'disk',
'ram',
'bandwidth',
'cpu',
'gpu',
'ip'
];
public function type()
{
return $this->belongsTo(\App\Models\Type::class);
}
public function group()
{
return $this->belongsTo(\App\Models\Group::class);
}
}