/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     return FooterPics::all();
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy(Request $request)
 {
     DB::connection()->getPdo()->beginTransaction();
     try {
         foreach ($request->request->get("picIdList") as $id) {
             $footerPic = FooterPics::find($id);
             $footerPic->delete();
         }
         DB::connection()->getPdo()->commit();
         return response()->json(array("ok" => 1), 200, ['Content-Type:text/json;charset=UTF-8']);
     } catch (\PDOException $e) {
         DB::connection()->getPdo()->rollback();
     }
 }