Fix: Añadir relación feature() al modelo Inspection para resolver RelationNotFoundException en dashboard
This commit is contained in:
@@ -29,4 +29,9 @@ class Inspection extends Model
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function feature()
|
||||
{
|
||||
return $this->belongsTo(Feature::class, 'feature_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user