Laravel 5.2 中文文档
Illuminate\Contracts\Routing\ResponseFactory Route Illuminate\Routing\Router router Schema Illuminate\Database\Schema\Blueprint 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 1、简介 迁移就像数据库的版本控制,允许团队简单轻松的编辑并共享应用的数据库表结构,迁移 通常和 Laravel 的结构构建器结对从而可以很容易地构建应用的数据库表结构。 Laravel 的 Schema 门面提供了与数据库系统无关的创建和操纵表的支持,在 Laravel 所支 持的所有数据库系统中提供一致的、优雅的、平滑的 API。 2、生成迁移 使用 Artisan 命令 make:migration make:migration 来创建一个新的迁移: php artisan make:migration create_users_table 新的迁移位于 database/migrations 目录下,每个迁移文件名都包含时间戳从而允许 Laravel 判断其顺序。 --table 和--create 选项可以用于指定表名以及该迁移是否要创建一个新的数据表。这些 选项只需要简单放在上述迁移命令后面并指定表名:0 码力 | 377 页 | 4.56 MB | 1 年前3Laravel 5.6 中文文档
Response(实例) Illuminate\Http\Response Route Illuminate\Routing\Router router Schema Illuminate\Database\Schema\Builder Session Illuminate\Session\SessionManager session Session(实例) Ill 注:数组驱动通常用于运行测试以避免 Session 数据持久化。 驱动预备知识 数据库 当使用 database 作为 Session 驱动时,需要设置表包含 Session 字段,下面是该数据表的表结构声明: Schema::create('sessions', function ($table) { $table->string('id')->unique(); $table->unsign 所谓迁移就像是数据库的版本控制,这种机制允许团队简单轻松的编辑并共享应用的数据库表结构。迁移通常和 Laravel 的 schema 构建器结对从 而可以很容易地构建应用的数据库表结构。如果你曾经频繁告知团队成员需要手动添加列到本地数据库表结构以维护本地开发环境,那么这正是数据 库迁移所致力于解决的问题。 Laravel 的 Schema 门面提供了与数据库系统无关的创建和操纵表的支持,在 Laravel 所支持的所有数据库系统中提供一致的、优雅的、流式的0 码力 | 377 页 | 14.56 MB | 1 年前3Laravel 6.0 中文文档
中文学习资源:https://xueyuanjun.com 152 门面 类 服务容器绑定 Route Illuminate\Routing\Router router Schema Illuminate\Database\Schema\Builder Session Illuminate\Session\SessionManager session Session(实 例) Illuminate\Session\Store 注:数组驱动通常用于运行测试以避免 Session 数据持 久化。 驱动预备知识 数据库 当使用 database 作为 Session 驱动时,需要设置表包含 Session 字段,下面是该数据表的表结构声明: Schema::create('sessions', function ($table) { $table->string('id')->unique(); $table->unsignedIntege 于 Laravel Passport 实现的 API 认证。 配置 数据库准备 使用 token 驱动前,需要创建一个迁移用来添加 api_token 字段 到 users 数据表: Schema::table('users', function ($table) { $table->string('api_token', 80)->after('password ') ->unique()0 码力 | 1442 页 | 14.66 MB | 1 年前3Laravel 5.1 中文文档
Illuminate\Contracts\Routing\ResponseFactory Route Illuminate\Routing\Router router Schema Illuminate\Database\Schema\Blueprint Session Illuminate\Session\SessionManager session Session (Instance) 1、简介 迁移就像数据库的版本控制,允许团队简单轻松的编辑并共享应用的数据库表结构,迁移通 常和 Laravel 的结构构建器结对从而可以很容易地构建应用的数据库表结构。 Laravel 的 Schema 门面提供了与数据库系统无关的创建和操纵表的支持,在 Laravel 所支持 的所有数据库系统中提供一致的、优雅的、平滑的 API。 2、生成迁移 使用 Artisan 命令 make:migration make:migration 来创建一个新的迁移: php artisan make:migration create_users_table 新的迁移位于 database/migrations 目录下,每个迁移文件名都包含时间戳从而允许 Laravel 判断其顺序。 --table 和--create 选项可以用于指定表名以及该迁移是否要创建一个新的数据表。这些选 项只需要简单放在上述迁移命令后面并指定表名:0 码力 | 307 页 | 3.46 MB | 1 年前3Laravel 5.3 中文文档
Illuminate\Contracts\Routing\ResponseFactory Route Illuminate\Routing\Router router Schema Illuminate\Database\Schema\Blueprint Session Illuminate\Session\SessionManager session Session (Instance) 项,下面是该数据表的表结构声明: 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 156 Schema::create('sessions', function ($table) { $table->string('id')->unique(); $table->inte d trait 来包含实现该接口需要的方法。 生成重置令牌表迁移 接下来,用来存储密码重置令牌的表必须被创建,Laravel 已经自带了这张表的迁移,就存放 在 database/migrations 目录。所有,你所要做的仅仅是运行迁移: 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源0 码力 | 691 页 | 9.37 MB | 1 年前3Weblate 4.2 用户文档
some of the migration steps manually as a PostgreSQL superuser in schema Weblate will use: CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA weblate; Configuring Weblate to use PostgreSQL The settings 'database.example.com', # Set to empty string for default 'PORT': '', } } 2. Run migrations and drop any data inserted into the tables: weblate migrate --database=postgresql weblate sqlflush migrate Weblate database. 1. Adjust your settings.py to use PostgeSQL as a database. 2. Migrate the schema in the PostgreSQL database: weblate migrate weblate sqlflush | weblate dbshell 3. Run the pgloader0 码力 | 648 页 | 9.34 MB | 1 年前3Weblate 4.2.1 用户文档
some of the migration steps manually as a PostgreSQL superuser in schema Weblate will use: CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA weblate; Configuring Weblate to use PostgreSQL The settings 'database.example.com', # Set to empty string for default 'PORT': '', } } 2. Run migrations and drop any data inserted into the tables: weblate migrate --database=postgresql weblate sqlflush migrate Weblate database. 1. Adjust your settings.py to use PostgeSQL as a database. 2. Migrate the schema in the PostgreSQL database: weblate migrate weblate sqlflush | weblate dbshell 3. Run the pgloader0 码力 | 650 页 | 9.34 MB | 1 年前3Weblate 4.2.2 用户文档
some of the migration steps manually as a PostgreSQL superuser in schema Weblate will use: CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA weblate; Configuring Weblate to use PostgreSQL The settings 'database.example.com', # Set to empty string for default 'PORT': '', } } 2. Run migrations and drop any data inserted into the tables: weblate migrate --database=postgresql weblate sqlflush migrate Weblate database. 1. Adjust your settings.py to use PostgeSQL as a database. 2. Migrate the schema in the PostgreSQL database: weblate migrate weblate sqlflush | weblate dbshell 3. Run the pgloader0 码力 | 650 页 | 9.34 MB | 1 年前3Weblate 4.2.1 用户文档
some of the migration steps manually as a PostgreSQL superuser in schema Weblate will use: CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA weblate; Configuring Weblate to use PostgreSQL The settings localhost 'HOST': 'database.example.com', # Set to empty string for default 'PORT': '', } } 2. Run migrations and drop any data inserted into the tables: weblate migrate --database=postgresql weblate sqlflush migrate Weblate database. 1. Adjust your settings.py to use PostgeSQL as a database. 2. Migrate the schema in the PostgreSQL database: weblate migrate weblate sqlflush | weblate dbshell 3. Run the pgloader0 码力 | 411 页 | 4.60 MB | 1 年前3Weblate 4.2.2 用户文档
some of the migration steps manually as a PostgreSQL superuser in schema Weblate will use: CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA weblate; Configuring Weblate to use PostgreSQL The settings localhost 'HOST': 'database.example.com', # Set to empty string for default 'PORT': '', } } 2. Run migrations and drop any data inserted into the tables: weblate migrate --database=postgresql weblate sqlflush migrate Weblate database. 1. Adjust your settings.py to use PostgeSQL as a database. 2. Migrate the schema in the PostgreSQL database: weblate migrate weblate sqlflush | weblate dbshell 3. Run the pgloader0 码力 | 411 页 | 4.60 MB | 1 年前3
共 283 条
- 1
- 2
- 3
- 4
- 5
- 6
- 29