update show ip & reinstall vps 50%

This commit is contained in:
Pham Bao
2025-08-04 00:35:54 +07:00
parent 160b7cdb47
commit fc277e5ef6
7 changed files with 683 additions and 93 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ReinstallLog extends Model
{
use HasFactory;
protected $fillable = [
'product_id',
'product_type',
'customer_id',
'os_id',
'template_id',
'ip_address',
'status',
'error_message',
'initiator',
'note',
];
public function customer()
{
return $this->belongsTo(Customer::class);
}
public function os()
{
return $this->belongsTo(Os::class, 'os_id');
}
}