diff --git a/app/Casts/EncryptedCast.php b/app/Casts/EncryptedCast.php index e13c69625d32..7be926072c3a 100644 --- a/app/Casts/EncryptedCast.php +++ b/app/Casts/EncryptedCast.php @@ -17,7 +17,7 @@ class EncryptedCast implements CastsAttributes { public function get($model, string $key, $value, array $attributes) { - return strlen($value) > 1 ? decrypt($value) : null; + return is_string($value) && strlen($value) > 1 ? decrypt($value) : null; } public function set($model, string $key, $value, array $attributes) diff --git a/database/migrations/2023_07_12_074829_add_thai_baht_currency_symbol.php b/database/migrations/2023_07_12_074829_add_thai_baht_currency_symbol.php new file mode 100644 index 000000000000..fe959e037436 --- /dev/null +++ b/database/migrations/2023_07_12_074829_add_thai_baht_currency_symbol.php @@ -0,0 +1,34 @@ +symbol = '฿'; + $tb->save(); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +};