optimize new slider data match by theme

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

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

Loading…
Cancel
Save