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;
|
use HasHashid;
|
||||||
|
|
||||||
protected $fillable = [
|
protected $guarded = ['id'];
|
||||||
'name',
|
|
||||||
'email',
|
|
||||||
'subject',
|
|
||||||
'message',
|
|
||||||
'reply_message',
|
|
||||||
'replied_at',
|
|
||||||
'replied_by',
|
|
||||||
];
|
|
||||||
|
|
||||||
public function repliedBy(): BelongsTo
|
public function repliedBy(): BelongsTo
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user