/** * Display a listing of the resource. * * @return Response */ public function index() { $types = ShopCategories::orderBy('id', 'desc')->paginate(10); return view('admin.shop_category.index', compact('types')); }