app/Http/Controllers/SliderController.php
/**
   * here we removing sliders entity with whole folder
   * @param Slider $slider
   * @throws \Exception
   */
here we removing sliders entity with whole folder
@param Slider $slider
@throws \Exception
here we removing sliders entity with whole folder @param Slider $slider @throws \ Exception
private function removeSlider(Slider $slider){
    $directory = base_path() . "/public/images/slider/$slider->id";
    File::deleteDirectory($directory);
    $slider->delete();
  }
private function removeSlider ( Slider $ slider ) { $ directory = base_path ( ) . " /public/images/slider/ $ slider -> id " ; File :: deleteDirectory ( $ directory ) ; $ slider -> delete ( ) ; }
here we removing sliders entity with whole folder
 @param Slider $slider
 @throws \Exception
here we removing sliders entity with whole folder @param Slider $slider @throws \ Exception
//delete folder with all files // and slide itself