> For the complete documentation index, see [llms.txt](https://bing.gitbook.io/phper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bing.gitbook.io/phper/php/3.-kuang-jia/lumen/ru-men.md).

# 入门

### 启动

```php
php -S localhost:8000 -t public
```

### 路由

```
指定路由到控制器方法处理
$router->get('/hello', 'HelloController@index');
```

### 输出json

```
return response()->json(['name' => 'Abigail', 'state' => 'CA']);
```

### 获取请求参数

```
app('request')->getRequestUri();
```

### make

你可以在服务容器外使用 `make` 方法来获得一个实例化的类

### 外墙和辅助功能之间绝对没有实际区别

```
return View::make('profile');

return view('profile');
```
