What is the use of the laravel bigIncrements type column

Here we explain what is mean of laravel bigIncrements type migration.


Laravel bigIncrements type migration

Laravel migration bigIncrements() method create a SQL biginteger type column which is UNSIGNED auto increment column. This column normally use when you make table primary key see below example

public function up()
{
    Schema::create('orders', function (Blueprint $table) {
        $table->bigIncrements('id');
    });
}
php laravel developer anmol sharma

Anmol Sharma

I am a software engineer and have experience in web development technologies like php, Laravel, Codeigniter, javascript, jquery, bootstrap and I like to share my deep knowledge by these blogs.

Random tutorial links