예제 #1
0
 public function getIndex()
 {
     pagetitle([trans('main.apps.shop'), settings('server_name')]);
     $items = ShopItem::paginate(settings('shop_items_per_page'));
     return view('front.shop.index', compact('items'));
 }
예제 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     pagetitle([trans('shop.index'), settings('server_name')]);
     $items = ShopItem::paginate(settings('shop_items_per_page'));
     return view('admin.shop.view', compact('items'));
 }