From 25e6713a658b343ac682e2712f6ad9180d6ed489 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Wed, 28 Jan 2026 10:44:27 +0700 Subject: [PATCH] refactor: Replace fillable properties with guarded properties in Contact model for improved security and data handling. --- app/Models/Contact.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/Models/Contact.php b/app/Models/Contact.php index 402ace4..b838bad 100644 --- a/app/Models/Contact.php +++ b/app/Models/Contact.php @@ -10,15 +10,7 @@ class Contact extends Model { use HasHashid; - protected $fillable = [ - 'name', - 'email', - 'subject', - 'message', - 'reply_message', - 'replied_at', - 'replied_by', - ]; + protected $guarded = ['id']; public function repliedBy(): BelongsTo {