@@ -1,16 +1,16 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace Hideyo\Ecommerce\Framework\Services; |
3 | 3 | |
4 | - class BaseRepository |
|
4 | + class BaseRepository |
|
5 | 5 | { |
6 | 6 | /** |
7 | 7 | * Select all model items |
8 | 8 | * @return object|null |
9 | 9 | */ |
10 | - public function selectAll() |
|
11 | - { |
|
12 | - return $this->model->where('shop_id', auth('hideyobackend')->user()->selected_shop_id)->get(); |
|
13 | - } |
|
10 | + public function selectAll() |
|
11 | + { |
|
12 | + return $this->model->where('shop_id', auth('hideyobackend')->user()->selected_shop_id)->get(); |
|
13 | + } |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * select all models by shop id |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | */ |
20 | 20 | public function selectAllByShopId($shopId) |
21 | 21 | { |
22 | - return $this->model->where('shop_id', $shopId)->get(); |
|
22 | + return $this->model->where('shop_id', $shopId)->get(); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function selectAllActiveByShopId($shopId) |
31 | 31 | { |
32 | - return $this->model->where('shop_id', $shopId)->where('active', 1)->get(); |
|
32 | + return $this->model->where('shop_id', $shopId)->where('active', 1)->get(); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |