Files
backend-mm/app/Repositories/Ecommerce/Channel/ChannelRepository.php
2026-03-17 16:55:53 +05:00

21 lines
456 B
PHP

<?php
namespace App\Repositories\Ecommerce\Channel;
use App\Models\Ecommerce\Channel\Channel;
use App\Repositories\System\Cache\CacheRepository;
use Illuminate\Support\Collection;
class ChannelRepository
{
public const CHANNEL_CACHE_NAME_FOR_NOVA = 'cs-nova-models-channels';
/**
* Channels
*/
public static function values(): array|Collection
{
return Channel::where('is_visible', true)->pluck('name', 'id');
}
}