> For the complete documentation index, see [llms.txt](https://liseen315.gitbook.io/laravel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liseen315.gitbook.io/laravel/shu-ju-ku-he-eloquent/pei-zhi/ding-yi-qian-yi/chuang-jian-biao-ge.md).

# 创建表格

我们已经看到默认的create\_users\_table迁移,它依赖于Schema facade以及它的方法,在这些迁移中我们所能做的都依赖于Schema的方法.

要创建一个表格,需要使用create()方法，它的第一个参数定义了表格的名字,第个参数是个闭包函数,用于定义表格字段

```php
Schema::create('users', function (Blueprint $table) { 
    // Create columns here
});
```
