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

@@ -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)