added guarded properties

This commit is contained in:
2023-03-10 12:39:39 +10:00
parent 57092e1b26
commit 44481fe107

View File

@@ -32,6 +32,13 @@ class Event extends Model
'ages',
];
/**
* The attributes that are not mass assignable.
*
* @var array<string>
*/
protected $guarded = ['id'];
/**
* Get all of the post's attachments.