1 | <?php namespace Modules\Page\Repositories\Eloquent; |
||
8 | class EloquentPageRepository extends EloquentBaseRepository implements PageRepository |
||
9 | { |
||
10 | /** |
||
11 | * Find the page set as homepage |
||
12 | * @return object |
||
13 | */ |
||
14 | public function findHomepage() |
||
18 | |||
19 | /** |
||
20 | * Count all records |
||
21 | * @return int |
||
22 | */ |
||
23 | public function countAll() |
||
27 | |||
28 | /** |
||
29 | * @param mixed $data |
||
30 | * @return object |
||
31 | */ |
||
32 | public function create($data) |
||
40 | |||
41 | /** |
||
42 | * @param $model |
||
43 | * @param array $data |
||
44 | * @return object |
||
45 | */ |
||
46 | public function update($model, $data) |
||
54 | } |
||
55 |