roles->findByNamesOrSlugs($roleKeys); if (!empty($rows)) { // first row is highest priority due to orderBy('priority','ASC') return $rows[0]['dashboard_route'] ?? '/landing_page/guest_dashboard'; } return '/landing_page/guest_dashboard'; } }