mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Require the user exists
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
d9a114090b
commit
94bfe7d9c8
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue