| 1 | <?php |
||
| 19 | class AdvertRepositoryEloquent extends BaseRepository implements AdvertRepository |
||
| 20 | { |
||
| 21 | use CacheableRepository; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Specify Model class name. |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 4 | public function model() |
|
| 32 | |||
| 33 | /** |
||
| 34 | * get advert by code. |
||
| 35 | * |
||
| 36 | * @param $code |
||
| 37 | * |
||
| 38 | * @return mixed |
||
| 39 | */ |
||
| 40 | 2 | public function getByCode($code,$status=1) |
|
| 44 | } |
||
| 45 |