From 8ac3937bf43d7eb39d908f36d177f67473cfdff5 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 28 May 2024 18:03:19 +0100 Subject: [PATCH] Commented model loading on asset model Signed-off-by: snipe --- app/Models/Asset.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index f31b872841..367f425a38 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -60,6 +60,12 @@ class Asset extends Depreciable */ protected $table = 'assets'; + /** + * Leaving this commented out, since we need to test further, but this would eager load the model relationship every single + * time the asset model is loaded. + */ + // protected $with = ['model']; + /** * Whether the model should inject it's identifier to the unique * validation rules before attempting validation. If this property