1 | <?php |
||
15 | abstract class Repository extends PrettusRepository implements PrettusCacheableInterface |
||
16 | { |
||
17 | |||
18 | use PrettusCacheableRepository; |
||
19 | |||
20 | /** |
||
21 | * Boot up the repository, pushing criteria. |
||
22 | */ |
||
23 | public function boot() |
||
27 | |||
28 | /** |
||
29 | * This function relies on the convention. |
||
30 | * Conventions: |
||
31 | * - Repository name should be same like it's model name (model: Foo -> repository: FooRepository). |
||
32 | * - If the container contains Models with names different than the container name, the repository class must |
||
33 | * set `$container='ContainerName'` property for this function to work properly |
||
34 | * Specify Model class name. |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public function model() |
||
55 | } |
||
56 |