From 0fe90e6b0eebb8d5fbde0eb7125b5443dbffb602 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Tue, 17 Mar 2026 16:55:53 +0500 Subject: [PATCH] wip --- app/Repositories/Ecommerce/Channel/ChannelRepository.php | 5 +---- .../Ecommerce/Collection/CollectionRepository.php | 6 +----- .../Ecommerce/Product/Brand/BrandRepository.php | 9 +++------ 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/app/Repositories/Ecommerce/Channel/ChannelRepository.php b/app/Repositories/Ecommerce/Channel/ChannelRepository.php index 94fe566..6443aa3 100644 --- a/app/Repositories/Ecommerce/Channel/ChannelRepository.php +++ b/app/Repositories/Ecommerce/Channel/ChannelRepository.php @@ -15,9 +15,6 @@ class ChannelRepository */ public static function values(): array|Collection { - return CacheRepository::make( - name: self::CHANNEL_CACHE_NAME_FOR_NOVA, - value: fn () => Channel::where('is_visible', true)->pluck('name', 'id') - ); + return Channel::where('is_visible', true)->pluck('name', 'id'); } } diff --git a/app/Repositories/Ecommerce/Collection/CollectionRepository.php b/app/Repositories/Ecommerce/Collection/CollectionRepository.php index 4b66d82..89f7d80 100644 --- a/app/Repositories/Ecommerce/Collection/CollectionRepository.php +++ b/app/Repositories/Ecommerce/Collection/CollectionRepository.php @@ -13,9 +13,5 @@ class CollectionRepository */ public static function values(): array|Collection { - return CacheRepository::make( - name: 'cs-nova-models-collections', - value: fn () => CollectionModel::where('is_visible', true)->pluck('name', 'id'), - ); - } + return CollectionModel::where('is_visible', true)->pluck('name', 'id'); } diff --git a/app/Repositories/Ecommerce/Product/Brand/BrandRepository.php b/app/Repositories/Ecommerce/Product/Brand/BrandRepository.php index 07e0721..c298e61 100644 --- a/app/Repositories/Ecommerce/Product/Brand/BrandRepository.php +++ b/app/Repositories/Ecommerce/Product/Brand/BrandRepository.php @@ -47,12 +47,9 @@ class BrandRepository */ public static function values(): array|Collection { - return CacheRepository::make( - name: 'cs-nova-models-brands', - value: fn () => Brand::where('is_visible', true) - ->pluck('name', 'id') - ->prepend(sprintf('------- %s -------', __('No')), '') - ); + return Brand::where('is_visible', true) + ->pluck('name', 'id') + ->prepend(sprintf('------- %s -------', __('No')), ''); } public function filterBy($resource)