From b708e41d6fb7ad9ebba226365e7166d61590083e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Bra=C3=B1a?= Date: Mon, 11 May 2026 10:58:25 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20A=C3=B1adir=20relaci=C3=B3n=20feature()?= =?UTF-8?q?=20al=20modelo=20Inspection=20para=20resolver=20RelationNotFoun?= =?UTF-8?q?dException=20en=20dashboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Inspection.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Inspection.php b/app/Models/Inspection.php index 8df7d3f..b8d13dc 100644 --- a/app/Models/Inspection.php +++ b/app/Models/Inspection.php @@ -29,4 +29,9 @@ class Inspection extends Model { return $this->belongsTo(User::class); } + + public function feature() + { + return $this->belongsTo(Feature::class, 'feature_id'); + } }