| 1 | <?php |
||
| 13 | class CountryRepository extends Repository |
||
| 14 | { |
||
| 15 | |||
| 16 | // cache the query result of all() (getting all countries) for 1 day <when caching is enabled> |
||
| 17 | protected $cacheMinutes = 1440; // 1 day |
||
| 18 | |||
| 19 | protected $cacheOnly = ['all']; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $fieldSearchable = [ |
||
| 25 | |||
| 26 | ]; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Specify Model class name. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function model() |
||
| 37 | } |
||
| 38 |