Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -41,7 +41,11 @@ class ModuleVmware extends Model
|
||||
|
||||
// NOTE: password must NOT use 'hashed' cast — it is a VM guest credential
|
||||
// used in plaintext by PowerShell scripts (Invoke-VMScript) via SSH/PowerCLI.
|
||||
protected $casts = [];
|
||||
// plain_password uses Laravel's 'encrypted' cast (APP_KEY, AES-256-CBC): stored
|
||||
// encrypted at rest, transparently decrypted on read — no code elsewhere changes.
|
||||
protected $casts = [
|
||||
'plain_password' => 'encrypted',
|
||||
];
|
||||
public function customer()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\Customer::class);
|
||||
|
||||
Reference in New Issue
Block a user