Exemplo n.º 1
0
 private function loadDepartmentLangs(Department $department)
 {
     $department->load('langs');
     $department->dbLangs = $department->langs->keyBy('lang_id');
     $department->addVisible('dbLangs');
 }