We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d767c87 commit a72eddeCopy full SHA for a72edde
src/Illuminate/Database/Eloquent/Model.php
@@ -1105,7 +1105,7 @@ public function getQualifiedKeyName()
1105
}
1106
1107
/**
1108
- * Get the auto incrementing key type.
+ * Get the auto-incrementing key type.
1109
*
1110
* @return string
1111
*/
@@ -1114,6 +1114,19 @@ public function getKeyType()
1114
return $this->keyType;
1115
1116
1117
+ /**
1118
+ * Set the data type for the primary key.
1119
+ *
1120
+ * @param string $type
1121
+ * @return $this
1122
+ */
1123
+ public function setKeyType($type)
1124
+ {
1125
+ $this->keyType = $type;
1126
+
1127
+ return $this;
1128
+ }
1129
1130
1131
* Get the value indicating whether the IDs are incrementing.
1132
0 commit comments