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