rector: arrrrr
This commit is contained in:
@@ -16,8 +16,8 @@ class OauthSetting extends Model
|
||||
protected function clientSecret(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
get: fn (?string $value) => empty($value) ? null : Crypt::decryptString($value),
|
||||
set: fn (?string $value) => empty($value) ? null : Crypt::encryptString($value),
|
||||
get: fn (?string $value) => $value === null || $value === '' || $value === '0' ? null : Crypt::decryptString($value),
|
||||
set: fn (?string $value) => $value === null || $value === '' || $value === '0' ? null : Crypt::encryptString($value),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user