mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-15 21:24:38 -04:00
Fixes for encrypted casts
This commit is contained in:
parent
04fa9dde8c
commit
aec715fbfd
@ -16,8 +16,8 @@ use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
|
|||||||
class EncryptedCast implements CastsAttributes
|
class EncryptedCast implements CastsAttributes
|
||||||
{
|
{
|
||||||
public function get($model, string $key, $value, array $attributes)
|
public function get($model, string $key, $value, array $attributes)
|
||||||
{nlog($value);
|
{
|
||||||
return !$value ? null : decrypt($value);
|
return ! is_null($value) ? decrypt($value) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function set($model, string $key, $value, array $attributes)
|
public function set($model, string $key, $value, array $attributes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user