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

@@ -49,9 +49,11 @@ class Rule extends Model
'stop_processing' => 'boolean',
'id' => 'int',
'strict' => 'boolean',
'user_id' => 'integer',
'user_group_id' => 'integer',
];
protected $fillable = ['rule_group_id', 'order', 'active', 'title', 'description', 'user_id', 'strict'];
protected $fillable = ['rule_group_id', 'order', 'active', 'title', 'description', 'user_id','user_group_id', 'strict'];
/**
* Route binder. Converts the key in the URL to the specified object (or throw 404).