Fixed logging for component

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-26 13:09:21 +01:00
parent fc8bb82a02
commit cd7f276c40

View file

@ -101,7 +101,7 @@ class ComponentCheckoutController extends Controller
$component->asset_id = $request->input('asset_id');
$component->assets()->attach($component->id, [
'component_id' => $component->id,
'user_id' => auth()->user(),
'user_id' => auth()->user()->id,
'created_at' => date('Y-m-d H:i:s'),
'assigned_qty' => $request->input('assigned_qty'),
'asset_id' => $request->input('asset_id'),