Make sure user_group_id is rendered as int where relevant.

This commit is contained in:
James Cole
2025-02-15 05:38:40 +01:00
parent 7504b21c3e
commit b6e8b66035
17 changed files with 45 additions and 9 deletions

View File

@@ -46,9 +46,11 @@ class Attachment extends Model
'updated_at' => 'datetime',
'deleted_at' => 'datetime',
'uploaded' => 'boolean',
'user_id' => 'integer',
'user_group_id' => 'integer',
];
protected $fillable = ['attachable_id', 'attachable_type', 'user_id', 'md5', 'filename', 'mime', 'title', 'description', 'size', 'uploaded'];
protected $fillable = ['attachable_id', 'attachable_type', 'user_id','user_group_id', 'md5', 'filename', 'mime', 'title', 'description', 'size', 'uploaded'];
/**
* Route binder. Converts the key in the URL to the specified object (or throw 404).