Merge branch 'develop' into feature/CheckPaymentHarim
This commit is contained in:
@@ -44,5 +44,21 @@ class Harim extends Model
|
||||
|
||||
$this->update($data);
|
||||
});
|
||||
public function panjarehVahedHistories(): HasMany
|
||||
{
|
||||
return $this->hasMany(PanjarehVahedHistory::class);
|
||||
}
|
||||
|
||||
protected function data(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
set: function ($value) {
|
||||
$iv = config('harim_web_services.Harim_Info.iv');
|
||||
$keyString = config('harim_web_services.Harim_Info.keyString');
|
||||
$key = hash('sha256',$keyString, true);
|
||||
$decrypted = openssl_decrypt($value,'aes-256-cbc',$key,false, $iv);
|
||||
return json_decode($decrypted);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user