Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- interface RepositoryContract
- {
- public function find($id, $columns = ['*'], $with = []);
- public function findBy($attribute, $value, $columns = ['*'], $with = []);
- public function findAll($columns = ['*'], $with = []);
- public function paginate($perPage = null, $columns = ['*'], $pageName = 'page', $page = null);
- public function findWhere(array $where, $columns = ['*'], $with = []);
- public function findWhereIn($attribute, array $values, $columns = ['*'], $with = []);
- public function findWhereNotIn($attribute, array $values, $columns = ['*'], $with = []);
- public function firstOrCreate(array $attributes);
- public function update($id, array $attributes = []);
- public function delete($id);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement