Brak opisu

Department.php 305B

12345678910111213141516171819
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Department extends Model
  5. {
  6. public $timestamps = false;
  7. public function courses() {
  8. return $this->hasMany(Course::class);
  9. }
  10. public function faculty() {
  11. return $this->belongsTo(Faculty::class);
  12. }
  13. }