19 lines
428 B
PHP
19 lines
428 B
PHP
<?php
|
|
|
|
namespace App\Repositories\Ecommerce\Collection;
|
|
|
|
use App\Models\Ecommerce\Product\Collection\Collection as CollectionModel;
|
|
use App\Repositories\System\Cache\CacheRepository;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class CollectionRepository
|
|
{
|
|
/**
|
|
* Channels
|
|
*/
|
|
public static function values(): array|Collection
|
|
{
|
|
return CollectionModel::where('is_visible', true)->pluck('name', 'id');
|
|
}
|
|
}
|