Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Dec 26, 2018
1 parent 5aa8025 commit 13b5123
Showing 1 changed file with 72 additions and 50 deletions.
122 changes: 72 additions & 50 deletions readme.md
@@ -1,69 +1,91 @@
<p align="center"><img src="https://laravel.com/assets/img/components/logo-laravel.svg"></p>
## Laravel Shop

> Laravel Shop 是课程 [《L05 Laravel 教程 - 电商实战》](https://laravel-china.org/topics/13206/laravel-shop-course) 的源代码。
## 功能

Laravel Shop 功能如下:

![_big](https://user-images.githubusercontent.com/324764/41384789-6fa309c6-6faa-11e8-93e0-eeb8d36fe7f7.jpg)

## 关于教程

<p align="center">
<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a>
<a href="https://laravel-china.org/topics/13206/laravel-shop-course">
<img src="https://user-images.githubusercontent.com/324764/41385516-bb14c184-6fae-11e8-9be1-250950d8732d.jpg" alt="《L05 Laravel 教程 - 电商实战》" width='420'>
</a>
</p>

## About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
课程沿用 [Laravel 实战课程系列](https://laravel-china.org/courses) 的教学方法,利用线索式的行文方式,带你熟悉项目需求分析、开发计划、项目创建、支付接口调试等电商项目的开发流程。

[Laravel 实战课程系列](https://laravel-china.org/courses) 的定位是最专业的商业项目开发课程,课程中所教授的技术方案,都是作者在实战中不断积累而来,所以你学到不是一个简单的『玩具项目』,而是一个经受过实战考验的商业解决方案,可以在你的商业项目中大胆使用。

## 项目知识点


- Composer autoload 功能的使用姿势;
- Laravel Mix 的基本用法;
- 使用 Laravel 快速构建用户登录、注册功能;
- 使用 MailHog 调试邮件发送功能;
- 使用 Laravel 的 Notification 模块发送邮件;
- 优雅地处理 Laravel 项目中的异常;
- 事件与监听器的使用;
- 使用授权策略来控制权限;
- 使用 overtrue/laravel-lang 来汉化错误信息;
- laravel-admin 扩展包的安装与配置;
- 使用 laravel-admin 快速构建对模型的增删改查功能;
- 使用 laravel-admin 配置后台用户角色、权限;
- 商品 SKU 的概念;
- 使用查询构造器根据用户输入来动态构建查询 SQL;
- 设置 Laravel 路由顺序的正确姿势;
- 购物车的设计与实现;
- 使用闭包来校验用户输入;
- 自定义 Laravel 验证器;
- 订单流水号的生成;
- 创建订单时保存用户收货地址信息的正确姿势;
- 代表状态的值应使用常量;
- 在 Laravel 中使用数据库事务的正确姿势;
- 高并发下减商品库存的正确姿势;
- 延迟任务的使用;
- 使用预加载与延迟预加载解决数据库 N + 1 问题;
- 通过对业务代码的封装来提高代码的复用性;
- yansongda/pay 扩展包的安装与配置;
- 支付宝沙箱账号的申请与配置;
- 微信扫码支付的开通与配置;
- 拉起支付宝、微信支付;
- 支付的前端回调与后端回调的概念;
- 在本地开发环境处理支付宝、微信支付后端回调的正确姿势;
- 二维码的生成;
- 管理员收到支付订单开始发货;
- 用户收到商品后确认收货;
- 用户确认收货后选择退款;
- 管理员接到退款请求后的拒绝退款;
- 支付宝、微信支付的退款处理;
- 优惠券的设计与实现;

## 截图


![0](https://user-images.githubusercontent.com/324764/41385028-c1329666-6fab-11e8-8052-eb8d863cb766.png)

- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).

Laravel is accessible, yet powerful, providing tools needed for large, robust applications.
![1](https://user-images.githubusercontent.com/324764/41385029-c1a58dba-6fab-11e8-9c15-5cdf85f848b6.gif)

## Learning Laravel

Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.
![2](https://user-images.githubusercontent.com/324764/41385030-c2034504-6fab-11e8-8b7a-04797afa6b28.png)

If you're not in the mood to read, [Laracasts](https://laracasts.com) contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.

## Laravel Sponsors
![3](https://user-images.githubusercontent.com/324764/41385031-c267b3ae-6fab-11e8-815c-5a027ca34318.png)

We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell):

- **[Vehikl](https://vehikl.com/)**
- **[Tighten Co.](https://tighten.co)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[64 Robots](https://64robots.com)**
- **[Cubet Techno Labs](https://cubettech.com)**
- **[British Software Development](https://www.britishsoftware.co)**
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
- **[DevSquad](https://devsquad.com)**
- [UserInsights](https://userinsights.com)
- [Fragrantica](https://www.fragrantica.com)
- [SOFTonSOFA](https://softonsofa.com/)
- [User10](https://user10.com)
- [Soumettre.fr](https://soumettre.fr/)
- [CodeBrisk](https://codebrisk.com)
- [1Forge](https://1forge.com)
- [TECPRESSO](https://tecpresso.co.jp/)
- [Runtime Converter](http://runtimeconverter.com/)
- [WebL'Agence](https://weblagence.com/)
- [Invoice Ninja](https://www.invoiceninja.com)
- [iMi digital](https://www.imi-digital.de/)
- [Earthlink](https://www.earthlink.ro/)
- [Steadfast Collective](https://steadfastcollective.com/)
- [We Are The Robots Inc.](https://watr.mx/)
- [Understand.io](https://www.understand.io/)
![5](https://user-images.githubusercontent.com/324764/41385032-c2c82de2-6fab-11e8-9aa6-0d88cc486dfe.png)

## Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
![6](https://user-images.githubusercontent.com/324764/41385033-c32a3140-6fab-11e8-8deb-fb23fe3ae8a6.png)

## Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
![7](https://user-images.githubusercontent.com/324764/41385034-c39c59c8-6fab-11e8-899a-5f042fa0bd1d.png)

## License

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
![8](https://user-images.githubusercontent.com/324764/41385035-c414fc84-6fab-11e8-82f6-ff50246a4853.png)

0 comments on commit 13b5123

Please sign in to comment.