LaravelShoppingcart:Laravel的简单购物车实现-源码

上传者: 42139252 | 上传时间: 2021-02-19 21:08:58 | 文件大小: 24KB | 文件类型: ZIP
PHP
Laravel购物车 Laravel一个简单的shoppingcart实现。 安装 通过安装软件包。 从终端运行Composer require命令: composer require gloudemans/shoppingcart 如果您使用的是Laravel 5.5,那么这就是所有要做的事情。 如果您仍使用Laravel 5.4,则最后的步骤是添加程序包的服务提供者并为程序包加上别名。 为此,请打开您的config/app.php文件。 将新行添加到providers数组: Gloudemans\Shoppingcart\ShoppingcartServiceProvider::class 并可以选择向aliases数组添加新行: 'Cart' => Gloudemans\Shoppingcart\Facades\Cart::class, 现在,您可以开始在应用程序中使用

文件下载

资源详情

[{"title":"( 23 个子文件 24KB ) LaravelShoppingcart:Laravel的简单购物车实现-源码","children":[{"title":"LaravelShoppingcart-master","children":[{"title":".gitignore <span style='color:#111;'> 45B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 16.24KB </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"Fixtures","children":[{"title":"BuyableProduct.php <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"ProductModel.php <span style='color:#111;'> 183B </span>","children":null,"spread":false}],"spread":true},{"title":"CartAssertions.php <span style='color:#111;'> 986B </span>","children":null,"spread":false},{"title":"CartTest.php <span style='color:#111;'> 25.88KB </span>","children":null,"spread":false},{"title":"CartItemTest.php <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false}],"spread":true},{"title":"phpunit.xml <span style='color:#111;'> 568B </span>","children":null,"spread":false},{"title":"database","children":[{"title":"migrations","children":[{"title":"0000_00_00_000000_create_shoppingcart_table.php <span style='color:#111;'> 725B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"composer.json <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"Contracts","children":[{"title":"Buyable.php <span style='color:#111;'> 533B </span>","children":null,"spread":false}],"spread":true},{"title":"CartItemOptions.php <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"Cart.php <span style='color:#111;'> 13.97KB </span>","children":null,"spread":false},{"title":"ShoppingcartServiceProvider.php <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"CanBeBought.php <span style='color:#111;'> 948B </span>","children":null,"spread":false},{"title":"Exceptions","children":[{"title":"UnknownModelException.php <span style='color:#111;'> 132B </span>","children":null,"spread":false},{"title":"InvalidRowIDException.php <span style='color:#111;'> 132B </span>","children":null,"spread":false},{"title":"CartAlreadyStoredException.php <span style='color:#111;'> 137B </span>","children":null,"spread":false}],"spread":false},{"title":"CartItem.php <span style='color:#111;'> 10.38KB </span>","children":null,"spread":false},{"title":"Facades","children":[{"title":"Cart.php <span style='color:#111;'> 299B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"config","children":[{"title":"cart.php <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 168B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明