SHARE
TWEET

Untitled

a guest Mar 29th, 2016 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public function catalogred(Request $request)
  2.     {
  3.         $item = Catalog::find($request->get('id'));
  4.         if(is_null($item)) $item = new Catalog;
  5.             $item->name = $request->get('name');
  6.             $item->sort = $request->get('sort');
  7.             $item->category = $request->get('category');
  8.             $item->procent = $request->get('procent');
  9.             $item->status = $request->get('status');
  10.             $item->icourl = $request->get('icourl');
  11.             $item->image = $request->get('image');
  12.             $item->short = $request->get('short');
  13.             $item->desc = $request->get('desc');
  14.             $item->desc_karkas = $request->get('desc_karkas');
  15.             $item->desc_brus = $request->get('desc_brus');
  16.             $item->desc_kanada = $request->get('desc_kanada');
  17.             $item->price_karkas = $request->get('price_karkas');
  18.             $item->price_brus = $request->get('price_brus');
  19.             $item->price_kanada = $request->get('price_kanada');
  20.             $item->type = $request->get('type');
  21.             $item->goods = $request->get('goods');
  22.             $item->status = 0;
  23.             $item->save();
  24.             return redirect('/admin/catalog'); 
  25.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top