This commit is contained in:
nurmuhammet committed 2026-03-17 16:55:53 +05:00
1 parent 7eefafa805
commit 0fe90e6b0e
3 files changed
+5 -15

No files matched your search

@@ -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');
}
}
@@ -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');
}
@@ -47,12 +47,9 @@ public static function nova(): self
*/
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)