File "CityRepository.php"
Full path: /home/smartkey/skey_in/app/Repositories/CityRepository.php
File size: 480 B
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Repositories;
use App\Models\City;
class CityRepository extends BaseRepository
{
/**
* @var array
*/
protected $fieldSearchable = [
'name',
'state_id',
];
/**
* Return searchable fields
*/
public function getFieldsSearchable(): array
{
return $this->fieldSearchable;
}
/**
* Configure the Model
**/
public function model()
{
return City::class;
}
}