No Description

FypPartOutcome.php 386B

1234567891011121314151617
  1. <?php
  2. class FypPartOutcome extends \Eloquent {
  3. protected $fillable = ['fyp_part_id', 'outcome_id', 'objectives', 'courses', 'methods', 'display_order'];
  4. // return the fypPart the belongs to
  5. public function fypPart()
  6. {
  7. return $this->belongsTo('FypPart');
  8. }
  9. // return the outcome the fyp part belongs to
  10. public function outcome()
  11. {
  12. return $this->belongsTo('Outcome');
  13. }
  14. }