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