{"id":16458701,"url":"https://github.com/onecodemonkey/lara_shop","last_synced_at":"2025-10-07T08:32:40.501Z","repository":{"id":43596529,"uuid":"172564464","full_name":"OneCodeMonkey/lara_shop","owner":"OneCodeMonkey","description":"A complete shopping project（single store）developed by laravel 5.7 with universal modules for managements.","archived":false,"fork":false,"pushed_at":"2022-12-09T15:47:53.000Z","size":2616,"stargazers_count":5,"open_issues_count":18,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T00:04:12.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OneCodeMonkey.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-25T18:50:19.000Z","updated_at":"2021-09-01T16:34:44.000Z","dependencies_parsed_at":"2023-01-25T22:31:47.825Z","dependency_job_id":null,"html_url":"https://github.com/OneCodeMonkey/lara_shop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneCodeMonkey%2Flara_shop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneCodeMonkey%2Flara_shop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneCodeMonkey%2Flara_shop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneCodeMonkey%2Flara_shop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneCodeMonkey","download_url":"https://codeload.github.com/OneCodeMonkey/lara_shop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235607588,"owners_count":19017387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T10:46:03.757Z","updated_at":"2025-10-07T08:32:39.808Z","avatar_url":"https://github.com/OneCodeMonkey.png","language":"PHP","readme":"## Laravel Shop\n\n## 功能\n\nLaravel Shop 功能如下：\n\n![_big](https://user-images.githubusercontent.com/324764/41384789-6fa309c6-6faa-11e8-93e0-eeb8d36fe7f7.jpg)\n\n## 本项目实现的点\n\n\n-   Composer autoload 功能的使用姿势；\n-   Laravel Mix 的基本用法；\n-   使用 Laravel 快速构建用户登录、注册功能；\n-   使用 MailHog 调试邮件发送功能；\n-   使用 Laravel 的 Notification 模块发送邮件；\n-   优雅地处理 Laravel 项目中的异常；\n-   事件与监听器的使用；\n-   使用授权策略来控制权限；\n-   使用 overtrue/laravel-lang 来汉化错误信息；\n-   laravel-admin 扩展包的安装与配置；\n-   使用 laravel-admin 快速构建对模型的增删改查功能；\n-   使用 laravel-admin 配置后台用户角色、权限；\n-   商品 SKU 的概念；\n-   使用查询构造器根据用户输入来动态构建查询 SQL；\n-   设置 Laravel 路由顺序的正确姿势；\n-   购物车的设计与实现；\n-   使用闭包来校验用户输入；\n-   自定义 Laravel 验证器；\n-   订单流水号的生成；\n-   创建订单时保存用户收货地址信息的正确姿势；\n-   代表状态的值应使用常量；\n-   在 Laravel 中使用数据库事务的正确姿势；\n-   高并发下减商品库存的正确姿势；\n-   延迟任务的使用；\n-   使用预加载与延迟预加载解决数据库 N + 1 问题；\n-   通过对业务代码的封装来提高代码的复用性；\n-  yansongda/pay 扩展包的安装与配置；\n-  支付宝沙箱账号的申请与配置；\n-  微信扫码支付的开通与配置；\n-  拉起支付宝、微信支付；\n-  支付的前端回调与后端回调的概念；\n-  在本地开发环境处理支付宝、微信支付后端回调的正确姿势；\n-  二维码的生成；\n-  管理员收到支付订单开始发货；\n-  用户收到商品后确认收货；\n-  用户确认收货后选择退款；\n-  管理员接到退款请求后的拒绝退款；\n-  支付宝、微信支付的退款处理；\n-  优惠券的设计与实现；\n\n## 截图\n\n\n![0](https://user-images.githubusercontent.com/324764/41385028-c1329666-6fab-11e8-8052-eb8d863cb766.png)\n\n\n![1](https://user-images.githubusercontent.com/324764/41385029-c1a58dba-6fab-11e8-9c15-5cdf85f848b6.gif)\n\n\n![2](https://user-images.githubusercontent.com/324764/41385030-c2034504-6fab-11e8-8b7a-04797afa6b28.png)\n\n\n![3](https://user-images.githubusercontent.com/324764/41385031-c267b3ae-6fab-11e8-815c-5a027ca34318.png)\n\n\n![5](https://user-images.githubusercontent.com/324764/41385032-c2c82de2-6fab-11e8-9aa6-0d88cc486dfe.png)\n\n\n![6](https://user-images.githubusercontent.com/324764/41385033-c32a3140-6fab-11e8-8deb-fb23fe3ae8a6.png)\n\n\n![7](https://user-images.githubusercontent.com/324764/41385034-c39c59c8-6fab-11e8-899a-5f042fa0bd1d.png)\n\n\n![8](https://user-images.githubusercontent.com/324764/41385035-c414fc84-6fab-11e8-82f6-ff50246a4853.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecodemonkey%2Flara_shop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonecodemonkey%2Flara_shop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecodemonkey%2Flara_shop/lists"}