/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $carts = Cart::all(); return view("cart.index")->with('carts', $carts); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $carts = Cart::all(); return view('admin.carts', compact('carts')); }