public function slider_image_store(SliderRequest $request)
 {
     $all_slider = Slider::all();
     if ($all_slider->isEmpty()) {
         $position = 1;
     } else {
         $position = Slider::all()->max('position') + 1;
     }
     $slug = uniqid();
     $file = $request->file('slider_image');
     $file->move('uploads/', $slug . '__' . $file->getClientOriginalName());
     $file_text = $slug . '__' . $file->getClientOriginalName();
     $data = ['heading_text' => $request->get('heading_text'), 'paragraph_text' => $request->get('paragraph_text'), 'button_text' => $request->get('button_text'), 'button_url' => $request->get('button_url'), 'slider_image' => $file_text, 'position' => $position];
     $slider = new Slider($data);
     $slider->save();
     return redirect('/slider/all');
 }