Skip to content

Instantly share code, notes, and snippets.

View AntonParotikov's full-sized avatar

AntonParotikov

View GitHub Profile
Есть модель в который мы делаем отношения к другим моделям
public function hotels() {
return $this->hasManyThrough(
'Adrus\Travel\Models\OrderHotel',
'Adrus\Travel\Models\OrderCity'
);
}
На выходе
"cities": [
{