Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Laravel 4 中使用 Schema builder 在表行中执行 biginteger 类型。
谢谢大家。
bigInteger() 存在于 Laravel 4 的 Schema Builder 中,因此您的迁移应如下所示:
public function up() { Schema::create('users', function($table) { $table->increments('id'); $table->bigInteger('human_lives'); }); }