Modernize use statements, switch to auth()

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2024-07-04 20:49:22 +01:00
parent e98284fff5
commit ae9085b11f
55 changed files with 286 additions and 254 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ class Asset extends Depreciable
} elseif (get_class($admin) === \App\Models\User::class) {
$checkedOutBy = $admin;
} else {
$checkedOutBy = Auth::user();
$checkedOutBy = auth()->user();
}
event(new CheckoutableCheckedOut($this, $target, $checkedOutBy, $note, $originalValues));