Если вы посмотрите на Blueprint. php вы увидите оба метода:
/**
* Create a new unsigned big integer (8-byte) column on the table.
*
* @param string $column
* @param bool $autoIncrement
* @return \Illuminate\Database\Schema\ColumnDefinition
*/
public function unsignedBigInteger($column, $autoIncrement = false)
{
return $this->bigInteger($column, $autoIncrement, true);
}
/**
* Create a new unsigned big integer (8-byte) column on the table.
*
* @param string $column
* @return \Illuminate\Database\Schema\ForeignIdColumnDefinition
*/
public function foreignId($column)
{
$this->columns[] = $column = new ForeignIdColumnDefinition($this, [
'type' => 'bigInteger',
'name' => $column,
'autoIncrement' => false,
'unsigned' => true,
]);
return $column;
}
Итак, по умолчанию используется тип столбца "bigInteger", а для "unsigned" установлено значение true. В конце концов, они одинаковы.
Единственное отличие состоит в том, что с "unsignedBigInteger" вы можете контролировать, если для $ autoIncrement установлено значение true или false, а не для foreignId