Fix: Añadir relación feature() al modelo Inspection para resolver RelationNotFoundException en dashboard

This commit is contained in:
2026-05-11 10:58:25 +02:00
parent 2cb10b0854
commit b708e41d6f
+5
View File
@@ -29,4 +29,9 @@ class Inspection extends Model
{
return $this->belongsTo(User::class);
}
public function feature()
{
return $this->belongsTo(Feature::class, 'feature_id');
}
}