如何使用 Laravel 4 中的架构构建器在表行中执行大整数类型。
谢谢大家。
最佳答案
bigInteger() 存在于 Laravel 4 的 Schema Builder 中,因此您的迁移应该如下所示:
public function up()
{
Schema::create('users', function($table)
{
$table->increments('id');
$table->bigInteger('human_lives');
});
}
关于laravel - 架构生成器 Laravel 4 中的大整数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16569435/