@@ -29,6 +29,9 @@ discard block |
||
| 29 | 29 | $this->makeModel(); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @return string |
|
| 34 | + */ |
|
| 32 | 35 | abstract public function model(); |
| 33 | 36 | |
| 34 | 37 | public function all($columns = ['*']) |
@@ -96,6 +99,9 @@ discard block |
||
| 96 | 99 | return $this->model->findOrCreate($data); |
| 97 | 100 | } |
| 98 | 101 | |
| 102 | + /** |
|
| 103 | + * @param string $attribute |
|
| 104 | + */ |
|
| 99 | 105 | public function findBy($attribute, $value, $columns = array('*')) |
| 100 | 106 | { |
| 101 | 107 | $this->applyCriteria(); |