refactor: Replace fillable properties with guarded properties in Contact model for improved security and data handling.

This commit is contained in:
Yoga Pangestu 2026-01-28 10:44:27 +07:00
parent 1d2e861c79
commit 25e6713a65

View File

@ -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
{