1 | <?php namespace Modules\Page\Repositories\Eloquent; |
||
9 | class EloquentPageRepository extends EloquentBaseRepository implements PageRepository |
||
10 | { |
||
11 | /** |
||
12 | * Find the page set as homepage |
||
13 | * @return object |
||
14 | */ |
||
15 | public function findHomepage() |
||
19 | |||
20 | /** |
||
21 | * Count all records |
||
22 | * @return int |
||
23 | */ |
||
24 | public function countAll() |
||
28 | |||
29 | /** |
||
30 | * @param mixed $data |
||
31 | * @return object |
||
32 | */ |
||
33 | public function create($data) |
||
41 | |||
42 | /** |
||
43 | * @param $model |
||
44 | * @param array $data |
||
45 | * @return object |
||
46 | */ |
||
47 | public function update($model, $data) |
||
55 | |||
56 | /** |
||
57 | * @param $slug |
||
58 | * @param $locale |
||
59 | * @return object |
||
60 | */ |
||
61 | public function findBySlugInLocale($slug, $locale) |
||
72 | } |
||
73 |