count() == 0) { Right::add('clean', 'Обрезка базы'); } if (Right::where('code', 'marketplace')->count() == 0) { Right::add('marketplace', 'Маркетплейс'); } if (Right::where('code', 'update')->count() == 0) { Right::add('update', 'Обновления'); } if (Right::where('code', 'roommap')->count() == 0) { Right::add('roommap', 'Карта залов'); } if (Right::where('code', 'eorders')->count() == 0) { Right::add('eorders', 'Онлайн заказы'); } } }