You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
424 B
19 lines
424 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class ScheduleOverviewSystem extends SoftDeletesModel
|
|
{
|
|
protected $table = 'schedule_overview_systems';
|
|
|
|
public function courses()
|
|
{
|
|
return $this->hasMany(ScheduleOverviewCourse::class, 'system_id', 'id')->orderBy('sort')->orderBy('id');
|
|
}
|
|
|
|
public function schedules()
|
|
{
|
|
return $this->hasMany(ScheduleOverviewSchedule::class, 'system_id', 'id');
|
|
}
|
|
}
|