From 44481fe1074cae291f64f2d44d10fd128dd9e4bf Mon Sep 17 00:00:00 2001 From: James Collins Date: Fri, 10 Mar 2023 12:39:39 +1000 Subject: [PATCH] added guarded properties --- app/Models/Event.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Models/Event.php b/app/Models/Event.php index 3924235..c280797 100644 --- a/app/Models/Event.php +++ b/app/Models/Event.php @@ -32,6 +32,13 @@ class Event extends Model 'ages', ]; + /** + * The attributes that are not mass assignable. + * + * @var array + */ + protected $guarded = ['id']; + /** * Get all of the post's attachments.