classes/store/brand/SortingListStore.php
<?php namespace Lovata\Shopaholic\Classes\Store\Brand;
use Lovata\Toolbox\Classes\Store\AbstractStoreWithoutParam;
use Lovata\Shopaholic\Models\Brand;
/**
* Class SortingListStore
* @package Lovata\Shopaholic\Classes\Store\Brand
* @author Andrey Kharanenka, a.khoronenko@lovata.com, LOVATA Group
*/
class SortingListStore extends AbstractStoreWithoutParam
{
protected static $instance;
/**
* Get ID list from database
* @return array
*/
protected function getIDListFromDB() : array
{
$arElementIDList = (array) Brand::orderBy('sort_order', 'asc')->pluck('id')->all();
return $arElementIDList;
}
}