hasMany('FypPartOutcome'); } public function willAssessOutcome($outcome_id) { $q = FypPartOutcome:: where('fyp_part_id', $this->id) ->where('outcome_id', $outcome_id) ->first(); if($q) { return true; } else { return false; } } }