laravel - 架构生成器 Laravel 4 中的大整数

标签 laravel laravel-4 biginteger

如何使用 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/

相关文章:

c++ - 哪种基数更适合我的 BigInteger 库?

javascript - 如何获取整个 Laravel 语言(本地化)数据?

laravel-4 - Eloquent 地方不在查询中?

php - Eloquent ORM 电影取景地

php - Laravel 4 自定义唯一验证多列

java - BigInteger 乘法中的前导零

Laravel : To rename an uploaded file automatically

javascript - javascript中的字符串连接问题

PHP PDOException 找不到驱动程序

java - 如何在我的代码中实现 BigInteger 类?