* This source file is subject to the license under the project that is bundled. */ namespace App\Repository\RoleMenu; use App\Model\RoleMenu; class RoleMenuRepository { public function getMenuIdsByRoleIds(array $ids) { return RoleMenu::query()->select('menu_id') ->whereIn('role_id', $ids)->get()->pluck('menu_id')->toArray(); } }