<?php

namespace App\Admin\Repositories;

use App\Models\BaseProductParameter as Model;
use Dcat\Admin\Repositories\EloquentRepository;

class BaseProductParameter extends EloquentRepository
{
    /**
     * Model.
     *
     * @var string
     */
    protected $eloquentClass = Model::class;

    /*
     * Select options for filter
     */
    public static function selectOptions() {
        return Model::query()->where('enabled','=','1')->get()->pluck('name', 'id');
    }


}
