@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function authorize() |
| 14 | 14 | { |
| 15 | 15 | $product = $this->route()->getParameter('product'); |
| 16 | - /* if ($product) { |
|
| 16 | + /* if ($product) { |
|
| 17 | 17 | if (! $this->getInvolvedRepository()->checkIfAuthInvolved($product)) |
| 18 | 18 | return true; |
| 19 | 19 | }*/ |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | class ContactSend extends Request |
| 7 | 7 | { |
| 8 | 8 | |
| 9 | - /** |
|
| 9 | + /** |
|
| 10 | 10 | * @return bool |
| 11 | 11 | */ |
| 12 | 12 | public function authorize() |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | 'sub_category' => $sub_category, |
| 148 | 148 | 'respons' => true |
| 149 | 149 | ); |
| 150 | - return response($json); |
|
| 150 | + return response($json); |
|
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | /** |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | */ |
| 232 | 232 | public function index() |
| 233 | 233 | { |
| 234 | - /* dd(Lot::all());*/ |
|
| 234 | + /* dd(Lot::all());*/ |
|
| 235 | 235 | } |
| 236 | 236 | |
| 237 | 237 | /** |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | $was_liked = "not_liked"; |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | - if($vendor->likes()->count()) |
|
| 126 | + if($vendor->likes()->count()) |
|
| 127 | 127 | { |
| 128 | 128 | $positive_like_percent = |
| 129 | 129 | ($vendor->likes()->count() - $vendor->getLikes('dislike')->count()) / $vendor->likes()->count() * 100; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $this->addImage($image, $product); |
| 119 | 119 | }); |
| 120 | 120 | |
| 121 | - /* if (!empty($specs = $request->get('i_spec'))) |
|
| 121 | + /* if (!empty($specs = $request->get('i_spec'))) |
|
| 122 | 122 | $this->saveImprovedSpecifications($specs, $product);*/ |
| 123 | 123 | |
| 124 | 124 | $json = array( |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | //dd($request->get('spec_price')); |
| 251 | 251 | //dd(collect($request->get('spec_price'))->first()); |
| 252 | 252 | //$collection = $request->get('spec_price'); |
| 253 | - /* $collection = collect($request->get('spec_price')); |
|
| 253 | + /* $collection = collect($request->get('spec_price')); |
|
| 254 | 254 | $filtered = $collection->filter(function ($item) { |
| 255 | 255 | return $item['new_price'] != '' && $item['old_price'] != ''; |
| 256 | 256 | })->values(); |
@@ -27,9 +27,9 @@ |
||
| 27 | 27 | public function getImageAttribute($value) |
| 28 | 28 | { |
| 29 | 29 | //add full path to image |
| 30 | - if (!empty($value)) { |
|
| 30 | + if (!empty($value)) { |
|
| 31 | 31 | return str_replace('\\', '/', $value); |
| 32 | - } |
|
| 32 | + } |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | public function delete(){ |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | return $query->whereType('cover'); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - /** |
|
| 44 | + /** |
|
| 45 | 45 | * Scope avatar image. |
| 46 | 46 | * |
| 47 | 47 | * @param $query |
@@ -7,13 +7,13 @@ |
||
| 7 | 7 | |
| 8 | 8 | class LikeCounter extends Eloquent |
| 9 | 9 | { |
| 10 | - use LikeableModels; |
|
| 11 | - protected $table = 'likeable_like_counters'; |
|
| 12 | - public $timestamps = false; |
|
| 13 | - protected $fillable = ['likable_id', 'likable_type', 'count', 'type']; |
|
| 10 | + use LikeableModels; |
|
| 11 | + protected $table = 'likeable_like_counters'; |
|
| 12 | + public $timestamps = false; |
|
| 13 | + protected $fillable = ['likable_id', 'likable_type', 'count', 'type']; |
|
| 14 | 14 | |
| 15 | - public function likable() |
|
| 16 | - { |
|
| 17 | - return $this->morphTo(); |
|
| 18 | - } |
|
| 15 | + public function likable() |
|
| 16 | + { |
|
| 17 | + return $this->morphTo(); |
|
| 18 | + } |
|
| 19 | 19 | } |
| 20 | 20 | \ No newline at end of file |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | trait LikeableModels |
| 6 | 6 | { |
| 7 | - public function scopeTypeLike($query, $type) |
|
| 8 | - { |
|
| 9 | - return $query->where('type', $type); |
|
| 10 | - } |
|
| 7 | + public function scopeTypeLike($query, $type) |
|
| 8 | + { |
|
| 9 | + return $query->where('type', $type); |
|
| 10 | + } |
|
| 11 | 11 | } |
| 12 | 12 | \ No newline at end of file |