Biginteger in Schema Builder Laravel 4

How can I do a biginteger type in a table row with Schema builder in Laravel 4.

Thx for all.

Upvotes: 2

Views: 3777

Answers (1)

Antonio Carlos Ribeiro
Antonio Carlos Ribeiro

Reputation: 87719

bigInteger() is present in Laravel 4's Schema Builder, so your migration should look like this:

public function up()
{
    Schema::create('users', function($table)
    {
        $table->increments('id');

        $table->bigInteger('human_lives');
    });
}

Upvotes: 5

Related Questions