This commit is contained in:
2026-03-17 16:55:53 +05:00
parent 7eefafa805
commit 0fe90e6b0e
3 changed files with 5 additions and 15 deletions

View File

@@ -15,9 +15,6 @@ class ChannelRepository
*/ */
public static function values(): array|Collection public static function values(): array|Collection
{ {
return CacheRepository::make( return Channel::where('is_visible', true)->pluck('name', 'id');
name: self::CHANNEL_CACHE_NAME_FOR_NOVA,
value: fn () => Channel::where('is_visible', true)->pluck('name', 'id')
);
} }
} }

View File

@@ -13,9 +13,5 @@ class CollectionRepository
*/ */
public static function values(): array|Collection public static function values(): array|Collection
{ {
return CacheRepository::make( return CollectionModel::where('is_visible', true)->pluck('name', 'id');
name: 'cs-nova-models-collections',
value: fn () => CollectionModel::where('is_visible', true)->pluck('name', 'id'),
);
}
} }

View File

@@ -47,12 +47,9 @@ class BrandRepository
*/ */
public static function values(): array|Collection public static function values(): array|Collection
{ {
return CacheRepository::make( return Brand::where('is_visible', true)
name: 'cs-nova-models-brands',
value: fn () => Brand::where('is_visible', true)
->pluck('name', 'id') ->pluck('name', 'id')
->prepend(sprintf('------- %s -------', __('No')), '') ->prepend(sprintf('------- %s -------', __('No')), '');
);
} }
public function filterBy($resource) public function filterBy($resource)