Require the user exists

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-11 16:18:42 +01:00
parent d9a114090b
commit 94bfe7d9c8

View file

@ -13,7 +13,7 @@ class ConsumableAssignment extends Model
protected $table = 'consumables_users';
public $rules = [
'assigned_to' => 'exists:users,id',
'assigned_to' => 'required|exists:users,id',
];
public function consumable()