Sin descripción

Department.php 304B

123456789101112131415161718
  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. }