'boolean', 'regions' => 'array', 'tags' => 'array', 'last_sync_at' => 'datetime', ]; public function setCredentialsAttribute(array $value): void { $this->attributes['credentials'] = Crypt::encryptString(json_encode($value)); } public function getCredentialsAttribute(string $value): array { return json_decode(Crypt::decryptString($value), true) ?? []; } public function resources() { return $this->hasMany(CloudResource::class, 'account_id'); } public function createdBy() { return $this->belongsTo(User::class, 'created_by'); } }