$table->id(); laravel 8

PHP
Schema::table('posts', function (Blueprint $table) {
    $table->unsignedInteger('user_id');

    $table->foreign('user_id')->references('id')->on('users');
});$table->bigInteger('votes');
Source

Also in PHP: