Fix upload
This commit is contained in:
parent
476872ddb2
commit
c7f9c37e2e
2 changed files with 3 additions and 2 deletions
|
|
@ -122,7 +122,7 @@ class CouponController extends Controller
|
|||
$coupon->coupon_decoration_image = $datas['coupon_decoration_image'];
|
||||
}
|
||||
if (isset($datas['coupon_logo_image'])) {
|
||||
$coupon->coupon_decoration_image = $datas['coupon_logo_image'];
|
||||
$coupon->coupon_logo_image = $datas['coupon_logo_image'];
|
||||
}
|
||||
$coupon->coupon_rcs = $datas['coupon_rcs'];
|
||||
$coupon->coupon_site_contact = $datas['coupon_site_contact'];
|
||||
|
|
@ -245,7 +245,7 @@ class CouponController extends Controller
|
|||
$imgs = collect(array());
|
||||
|
||||
foreach ($datas as $key => $item) {
|
||||
if ($key == 'coupon_image' || $key == 'coupon_gs1code' || $key == 'coupon_products_image' || (substr($key, 7, 9) == 'thumbnail' && strlen($key) < 18)) {
|
||||
if ($key == 'coupon_image' || $key == 'coupon_gs1code' || $key == 'coupon_decoration_image' || $key == 'coupon_logo_image' || (substr($key, 7, 9) == 'thumbnail' && strlen($key) < 18)) {
|
||||
if (isset($item)) {
|
||||
$path = $item->store('coupons');
|
||||
$path = str_replace('public/', '', $path);
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
@section('content')
|
||||
Stats
|
||||
<?php var_dump(public_path()); ?>
|
||||
<div class="chart-wrapper" id="chart-line1"></div>
|
||||
<svg></svg>
|
||||
@endsection
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue