From 87ac7926346cf088e3867c2a62317e90058a8978 Mon Sep 17 00:00:00 2001 From: lq Date: Mon, 28 Apr 2025 16:18:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=88=9B=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/CategoryModal.php | 16 ++++++++++++ app/Models/User.php | 48 ------------------------------------ 2 files changed, 16 insertions(+), 48 deletions(-) create mode 100644 app/Models/CategoryModal.php delete mode 100644 app/Models/User.php diff --git a/app/Models/CategoryModal.php b/app/Models/CategoryModal.php new file mode 100644 index 00000000..e4ec51c1 --- /dev/null +++ b/app/Models/CategoryModal.php @@ -0,0 +1,16 @@ + */ - use HasFactory, Notifiable; - - /** - * The attributes that are mass assignable. - * - * @var list - */ - protected $fillable = [ - 'name', - 'email', - 'password', - ]; - - /** - * The attributes that should be hidden for serialization. - * - * @var list - */ - protected $hidden = [ - 'password', - 'remember_token', - ]; - - /** - * Get the attributes that should be cast. - * - * @return array - */ - protected function casts(): array - { - return [ - 'email_verified_at' => 'datetime', - 'password' => 'hashed', - ]; - } -}