Lumen 文档安装内容缺失了一大半

安装

运行环境要求
Lumen 框架会有一些系统上的要求。 当然这些要求在 Laravel Homestead 虚拟机上都已经完全配置好了。因此强烈建议您将 Homestead 用作你本地的 Lumen 开发环境。

如果你没有安装 Homestead 的话,请确保你的系统环境符合以下要求:

PHP >= 7.1.3
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension

安装 Lumen
Lumen 利用 Composer 来管理它的代码依赖,所以在使用 Lumen 之前,请先确认你的电脑上安装了 Composer。

Via Lumen Installer

First, download the Lumen installer using Composer:

composer global require "laravel/lumen-installer"

Make sure to place the ~/.composer/vendor/bin directory in your PATH so the lumen executable can be located by your system.

Once installed, the lumen new command will create a fresh Lumen installation in the directory you specify. For instance, lumen new blog will create a directory named blog containing a fresh Lumen installation with all of Lumen's dependencies already installed. This method of installation is much faster than installing via Composer:

lumen new blog

Via Composer Create-Project

You may also install Lumen by issuing the Composer create-project command in your terminal:

composer create-project --prefer-dist laravel/lumen blog

Serving Your Application

To serve your project locally, you may use the Laravel Homestead virtual machine, Laravel Valet, or the built-in PHP development server:

php -S localhost:8000 -t public

Configuration

All of the configuration options for the Lumen framework are stored in the .env file. Once Lumen is installed, you should also configure your local environment.

Application Key

The next thing you should do after installing Lumen is set your application key to a random string. Typically, this string should be 32 characters long. The key can be set in the .env environment file. If you have not renamed the .env.example file to .env, you should do that now. If the application key is not set, your user encrypted data will not be secure!

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
Summer
最佳答案

文档生成的时候有个 bug,已修复 安装《Lumen 中文文档 5.7》

5年前 评论
讨论数量: 3
北冥

@Summer 是文档内容缺了吗

5年前 评论
Summer

文档生成的时候有个 bug,已修复 安装《Lumen 中文文档 5.7》

5年前 评论
北冥

嗯,现在好了

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!