<?php

namespace App\Repositories\Eloquent;

use App\Models\Config;
use App\Repositories\Interfaces\ConfigRepositoryInterface;
use Illuminate\Support\Collection;

class ConfigRepository extends BaseRepository implements ConfigRepositoryInterface
{

    /**
     * ConfigRepository constructor.
     *
     * @param Config $model
     */
    public function __construct(Config $model)
    {
        parent::__construct($model);
    }

    public function getByType($type)
    {
        return $this->model->where('type', $type)->get();
    }
}
