@@ -13,8 +13,8 @@ discard block |
||
13 | 13 | public function __construct(ShopRepository $shop) |
14 | 14 | { |
15 | 15 | $this->repo = $shop; |
16 | - $this->storageImagePath = storage_path() .config('hideyo.storage_path'). "/shop/"; |
|
17 | - $this->publicImagePath = public_path() .config('hideyo.public_path'). "/shop/"; |
|
16 | + $this->storageImagePath = storage_path().config('hideyo.storage_path')."/shop/"; |
|
17 | + $this->publicImagePath = public_path().config('hideyo.public_path')."/shop/"; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | ); |
32 | 32 | |
33 | 33 | if ($shopId) { |
34 | - $rules['title'] = $rules['title'].',title,'.$shopId; |
|
34 | + $rules['title'] = $rules['title'].',title,'.$shopId; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | return $rules; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | if (isset($attributes['logo'])) { |
50 | 50 | $destinationPath = $this->storageImagePath.$model->id; |
51 | - $filename = str_replace(" ", "_", strtolower($attributes['logo']->getClientOriginalName())); |
|
51 | + $filename = str_replace(" ", "_", strtolower($attributes['logo']->getClientOriginalName())); |
|
52 | 52 | $upload_success = $attributes['logo']->move($destinationPath, $filename); |
53 | 53 | |
54 | 54 | $attributes['logo_file_name'] = $filename; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | File::delete($model->logo_file_path); |
91 | 91 | $destinationPath = $this->storageImagePath.$model->id; |
92 | 92 | |
93 | - $filename = str_replace(" ", "_", strtolower($attributes['logo']->getClientOriginalName())); |
|
93 | + $filename = str_replace(" ", "_", strtolower($attributes['logo']->getClientOriginalName())); |
|
94 | 94 | $upload_success = $attributes['logo']->move($destinationPath, $filename); |
95 | 95 | |
96 | 96 | $attributes['logo_file_name'] = $filename; |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | //dd($list, $selected); |
59 | 59 | foreach ($list as $value => $display) { |
60 | - $sel = isset($selected[$value])?' selected="selected"':''; |
|
60 | + $sel = isset($selected[$value]) ? ' selected="selected"' : ''; |
|
61 | 61 | $html[] = '<option value="'.$value.'"'.$sel.'>'.e($display).'</option>'; |
62 | 62 | } |
63 | 63 |