Updated ERP with new modules and features

This commit is contained in:
Kwesi Banson
2026-09-22 08:06:31 +00:00
parent 71bc103fee
commit 5174e82e51
53 changed files with 3706 additions and 203 deletions

22
app/Models/Server.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Traits\LogsActivity;
class Server extends Model
{
use LogsActivity;
protected $fillable = [
'name', 'ip_address', 'os_version', 'username', 'password', 'services', 'status'
];
protected $casts = [
'password' => 'encrypted', // Automatically encrypts/decrypts
'services' => 'array', // Casts JSON to PHP array
];
// Hide password from standard array/JSON serialization for safety
protected $hidden = ['password'];
}