Remove elements from form request

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-05-22 14:11:54 +01:00
parent 0aa41835f9
commit 43949dad6a

View file

@ -24,11 +24,8 @@ class AssetCheckoutRequest extends Request
$this->assigned_type = 'App\Models\Location';
}
$this->replace([
'assigned_asset' => $this->assigned_asset,
'assigned_location' => $this->assigned_location,
'assigned_user' => $this->assigned_user,
'assigned_type' => $this->checkout_to_type,
$this->merge([
'assigned_type' => $this->assigned_type,
]);
}