/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(CarouselRepo $carousel_repo) { $carousel = $carousel_repo->getAllFront(); // return $carousel; \Session::put('path', ''); $title = prepTitle('', 'Kastner & Pallavicino'); return view('home.index', compact('carousel', 'title')); }
public function destroyImage(Request $request, CarouselRepo $carousel_repo) { $image_id = $request->input('image_id'); $delete = $carousel_repo->removeImage($image_id); return json_encode('true'); }