diff --git a/app/models/Component.php b/app/models/Component.php index dea3e4de..1d4b8932 100644 --- a/app/models/Component.php +++ b/app/models/Component.php @@ -6,7 +6,7 @@ * @return Illuminate\Database\Eloquent\Relations */ public function incidents() { - return $this->hasMany('Incident', 'component_id', 'id'); + return $this->hasMany('Incident', 'component', 'id'); } /**