optimize new slider data match by theme

pull/49/head
A1Gard 4 months ago
parent dc7daa365e
commit 10d26d730c

@ -80,6 +80,10 @@ class SliderController extends XController
$i->save(storage_path() . '/app/public/sliders/optimized-'. $slider->image); $i->save(storage_path() . '/app/public/sliders/optimized-'. $slider->image);
} }
if ($slider->id == null && Slider::count() > 0) {
$slider->data = Slider::first()->data;
}
$slider->save(); $slider->save();
return $slider; return $slider;

Loading…
Cancel
Save