public function products_load() { session_start(); $item = new item(); if (isset($_POST['cat_id'])) { $_SESSION['cat_id'] = $_POST['cat_id']; } $items_in_cart = $item->viewitem_in_cart($_SESSION['cat_id']); return View::make('sale.products_load', compact('items_in_cart')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $item = item::paginate(200); $item->setPath('collection'); return view('collection')->with('items', $item); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { return view('addFriend')->with('item', item::all()); // }