Modernized helpers and use statements

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2024-07-04 20:48:35 +01:00
parent 89f01d75d7
commit e98284fff5
20 changed files with 49 additions and 49 deletions
@@ -186,7 +186,7 @@ class ManufacturersController extends Controller
$logaction->item_type = Manufacturer::class;
$logaction->item_id = $manufacturer->id;
$logaction->created_at = date('Y-m-d H:i:s');
$logaction->user_id = Auth::user()->id;
$logaction->user_id = auth()->id();
$logaction->logaction('restore');
return response()->json(Helper::formatStandardApiResponse('success', trans('admin/manufacturers/message.restore.success')), 200);