@@ -10,11 +10,11 @@ discard block |
||
10 | 10 | |
11 | 11 | class AttributeService extends BaseService |
12 | 12 | { |
13 | - public function __construct(AttributeRepository $attribute, AttributeGroupRepository $attributeGroup) |
|
14 | - { |
|
15 | - $this->repo = $attribute; |
|
16 | - $this->repoGroup = $attributeGroup; |
|
17 | - } |
|
13 | + public function __construct(AttributeRepository $attribute, AttributeGroupRepository $attributeGroup) |
|
14 | + { |
|
15 | + $this->repo = $attribute; |
|
16 | + $this->repoGroup = $attributeGroup; |
|
17 | + } |
|
18 | 18 | |
19 | 19 | private function rules($id = false) |
20 | 20 | { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | $attributes['shop_id'] = auth('hideyobackend')->user()->selected_shop_id; |
48 | 48 | $attributes['modified_by_user_id'] = auth('hideyobackend')->user()->id; |
49 | - $attributes['attribute_group_id'] = $attributeGroupId; |
|
49 | + $attributes['attribute_group_id'] = $attributeGroupId; |
|
50 | 50 | |
51 | 51 | $validator = Validator::make($attributes, $this->rules()); |
52 | 52 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | ); |
37 | 37 | |
38 | 38 | if ($id) { |
39 | - $rules['title'] = $rules['title'].','.$id.' = id'; |
|
39 | + $rules['title'] = $rules['title'].','.$id.' = id'; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | return $rules; |
@@ -11,13 +11,13 @@ |
||
11 | 11 | |
12 | 12 | class BrandService extends BaseService |
13 | 13 | { |
14 | - public function __construct(BrandRepository $brand) |
|
15 | - { |
|
16 | - $this->repo = $brand; |
|
14 | + public function __construct(BrandRepository $brand) |
|
15 | + { |
|
16 | + $this->repo = $brand; |
|
17 | 17 | $this->storageImagePath = storage_path() .config('hideyo.storage_path'). "/brand/"; |
18 | 18 | $this->publicImagePath = public_path() .config('hideyo.public_path'). "/brand/"; |
19 | 19 | |
20 | - } |
|
20 | + } |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * The validation rules for the model. |