From 9d3d127b1d2d6d67c6997037a031556b335b7f63 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sat, 14 Jan 2023 18:35:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Host.php | 4 ++-- app/Models/User.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Host.php b/app/Models/Host.php index 364b2a8..74446ab 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -32,8 +32,8 @@ class Host extends Model protected $casts = [ // 'configuration' => 'array', 'suspended_at' => 'datetime', - 'price' => 'decimal', - 'managed_price' => 'decimal', + 'price' => 'decimal:2', + 'managed_price' => 'decimal:2', ]; protected static function boot() diff --git a/app/Models/User.php b/app/Models/User.php index 5995676..b9dd53f 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -39,7 +39,7 @@ class User extends Authenticatable protected $casts = [ 'email_verified_at' => 'datetime', - 'balance' => 'decimal', + 'balance' => 'decimal:2', 'banned_at' => 'datetime', 'birthday_at' => 'date', ];