@@ -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(); |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * Get similar slugs |
| 38 | - * @param $slug |
|
| 38 | + * @param string $slug |
|
| 39 | 39 | * @param $id |
| 40 | 40 | * @return mixed |
| 41 | 41 | */ |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | //@TODO implement google or s3 cloud storage support |
| 16 | 16 | //if (config('filesystems.default') == 'google') { |
| 17 | - // $this->media_path = Storage::disk()->getDriver()->getAdapter()->getStorageApiUri() . '/' . Storage::disk()->getDriver()->getAdapter()->getBucket()->name(); |
|
| 17 | + // $this->media_path = Storage::disk()->getDriver()->getAdapter()->getStorageApiUri() . '/' . Storage::disk()->getDriver()->getAdapter()->getBucket()->name(); |
|
| 18 | 18 | //} else { |
| 19 | 19 | //$this->media_path = Storage::disk()->getDriver()->getAdapter()->getPathPrefix(); |
| 20 | 20 | //} |