Use auth()->id() instead of Auth::id()

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2024-09-19 17:31:46 +01:00
parent b247fc33b9
commit 822ea96dfd
11 changed files with 20 additions and 17 deletions
@@ -128,7 +128,7 @@ class AssetMaintenancesController extends Controller
// create a new model instance
$maintenance = new AssetMaintenance();
$maintenance->fill($request->all());
$maintenance->created_by = Auth::id();
$maintenance->created_by = auth()->id();
// Was the asset maintenance created?
if ($maintenance->save()) {