hasMany('vacancies', 'vacancyFormID', 'id'); } public function responses() { return $this->belongsTo('App\Response', 'id', 'id'); } }