Update source into github

This commit is contained in:
pbao9
2025-07-24 16:18:27 +07:00
parent 41419358dd
commit 69851ac7bc
2642 changed files with 284095 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ModuleHostingServer extends Model
{
use HasFactory;
protected $table = 'module_hosting_server';
protected $fillable = [
'name',
'user',
'apikey',
'password',
'counter',
'status'
];
public function getStatus()
{
return match ($this->status) {
1 => '<span class="badge bg-success">Active</span>',
default => '<span class="badge bg-secondary">No Active</span>'
};
}
}