wip
This commit is contained in:
@@ -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 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user