<?php namespace Locations\Location\Repositories\Eloquent; use Locations\Location\Interfaces\DistrictsRepositoryInterface; use Litepie\Repository\Eloquent\BaseRepository; class DistrictsRepository extends BaseRepository implements DistrictsRepositoryInterface { /** * @var array */ protected $fieldSearchable = [ 'name' => 'like' ]; public function boot() { $this->pushCriteria(app('Litepie\Repository\Criteria\RequestCriteria')); } /** * Specify Model class name. * * @return string */ public function model() { return config('package.location.districts.model'); } }