AP
Size: a a a
AP
A
ПГ
ПГ
ПГ
posts
(the plural of the route parameter name) which can be used to retrieve the Post model.AP
A
A
VL
$schedules = $schedule->whereIn('user_id', function ($query) {
$query->select('user_id')
->from(with(new Teacher)->getTable())
->whereHas('subjects', function ($i) {
$i->where('subject_id', 1);
});
})->get();
$teachers = $teacher->select('user_id')->whereHas('subjects', function ($i) {
$i->where('subject_id', 1);
})->get();
U
$schedules = $schedule->whereIn('user_id', function ($query) {
$query->select('user_id')
->from(with(new Teacher)->getTable())
->whereHas('subjects', function ($i) {
$i->where('subject_id', 1);
});
})->get();
$teachers = $teacher->select('user_id')->whereHas('subjects', function ($i) {
$i->where('subject_id', 1);
})->get();
VL
VL
A
A
VL
VL
VL
VL
VL