Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 10 months ago.
0

Try with

bigIncrements
Last updated 10 months ago.
0

no, it also has modifier from laravel, laravel eloquent modifies all increments as primary key. it does not check is there any primary key is set by user. i think laravel needs this issue fixed.

Last updated 10 months ago.
0

Thank you for your reply Ruk33

Last updated 10 months ago.
0

Hi this might be late reply but try this :



Schema::create('person', function(Blueprint $table) {
        $table->string('id',255);
        $table->string('name',255);
        $table->bigInteger('test',true,true);
    $table->timestamps();
 $table->dropPrimary('person_test_primary');
        $table->primary(array('id'));

    });
Last updated 10 months ago.
0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 Laravel.io - All rights reserved.