We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a2acf6 commit 02fa7daCopy full SHA for 02fa7da
app/Models/Asset.php
@@ -122,9 +122,9 @@ public function declinedCheckout(User $declinedBy, $signature)
122
'assigned_to' => ['nullable', 'integer', 'required_with:assigned_type'],
123
'assigned_type' => ['nullable', 'required_with:assigned_to', 'in:'.User::class.",".Location::class.",".Asset::class],
124
'requestable' => ['nullable', 'boolean'],
125
- 'assigned_user' => ['nullable', 'exists:users,id,deleted_at,NULL'],
126
- 'assigned_location' => ['nullable', 'exists:locations,id,deleted_at,NULL', 'fmcs_location'],
127
- 'assigned_asset' => ['nullable', 'exists:assets,id,deleted_at,NULL']
+ 'assigned_user' => ['integer', 'nullable', 'exists:users,id,deleted_at,NULL'],
+ 'assigned_location' => ['integer', 'nullable', 'exists:locations,id,deleted_at,NULL', 'fmcs_location'],
+ 'assigned_asset' => ['integer', 'nullable', 'exists:assets,id,deleted_at,NULL']
128
];
129
130
0 commit comments