Няма описание

1234567891011121314151617181920
  1. <?php
  2. class Semester extends Eloquent
  3. {
  4. /**
  5. * Indicates if the model should be timestamped.
  6. *
  7. * @var bool
  8. */
  9. public $timestamps = false;
  10. public function courses()
  11. {
  12. return $this->hasMany('Course');
  13. }
  14. public function annual_cycle()
  15. {
  16. return $this->hasMany("AnnualCycle");
  17. }
  18. }