Laravel 5.1 LTS 中文文档翻译完成「精校版」
说明
前往阅读: http://laravel-china.org/docs/5.1
此次文档的翻译的比较细致,校对上花了很多时间,过了十几遍,阅读体验较之前应该会有很大改善 :beers: :beers: :beers: 。
一些修改 :sparkles:
文档的另一个目的是作为我 所在团队 的团队文档,所以中间加了一些备注,如:扩展阅读、小技巧、注意事项等。
另一个功能是支持夜间阅读模式:
对手机阅读也做了很多优化,拿着手机也可以刷刷刷文档了。:sparkles:
为什么 LTS
我喜欢 LTS, 我们团队 喜欢和推崇 LTS,事实上,在 2018 年以前我们只会使用 LTS 来开发大部分的个人项目和全部的商业项目。
Laravel 的 LTS 版本是一个伟大的发明,终于可以不用被框架的迭代推着走了,框架的更新换代对一个健康的生态系统来说是很必要的,我也认为程序员应该跟上技术的趋势,这对保持个人竞争力很重要。
但是作为一个庞大的商业项目的基础框架,一年一次的大版本更新真的是很痛苦的事情,需要你做决策: 1. 更新框架为最新;2. 沿用老的框架。
如果你选择更新,那么,你会浪费无数个深夜进行代码迁移和测试。
如果你选择不更新,那么,对不起,你放弃了很多能极大提高你开发效率的「扩展包」,并且,过不了多久,官方会宣布对你的过气的基础框架停止维护,包括安全的 fix。
哪一个决策执行起来,都存在很多不合理,都会让你抓狂,并且过程中你会觉得对不起父母,在这浪费生命。
所以,我们在 2018 年以前,重点维护 Laravel 5.1 LTS 版本的文档。
感谢
感谢@appleboy 为代表的可爱的 台湾翻译团队 ,他们做的很棒 :+1: , 翻译过程中参照了很多他们的做法。
--

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...
