<?php

namespace Ebuy\Product\Repositories\Eloquent;

use Ebuy\Product\Interfaces\BrandRepositoryInterface;
use Litepie\Repository\BaseRepository;
use Ebuy\Product\Repositories\Eloquent\Presenters\BrandItemPresenter;


class BrandRepository extends BaseRepository implements BrandRepositoryInterface
{

    public function boot()
    {
        $this->fieldSearchable = config('ebuy.product.brand.model.search');
    }

    /**
     * Specify Model class name.
     *
     * @return string
     */
    public function model()
    {
        return config('ebuy.product.brand.model.model');
    }

    /**
     * Returns the default presenter if none is availabale.
     *
     * @return void
     */
    public function presenter()
    {
        return BrandItemPresenter::class;
    }
}