public function productList() { $message = \Session::get('message'); $list = \App\Product::all(); $dimensions = Arrays::dimensionNames(); return view('admin.list', compact('list', 'dimensions', 'message')); }
public function product($id) { $product = \App\Product::find($id); $pData = unserialize($product->data); $dimensions = \App\Classes\Helpers\Arrays::dimensionNames(); //$currency = session('currency'); $currency = 'RUB'; return view('template.singleProduct', compact('product', 'pData', 'dimensions', 'currency')); }