refactor: Replace fillable properties with guarded properties in Contact model for improved security and data handling.
This commit is contained in:
parent
1d2e861c79
commit
25e6713a65
@ -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
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user